• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. AppleScript for iTunes > 73. Swap Song Name and Artist

Swap Song Name and Artist

Correct that irritating problem of’ song names and artist names being reversed.

The first time you find a track in iTunes that somehow has gotten its Song Name and Artist reversed, you open up its Get Info window and do some cutting, copying, pasting, and typing to effect repairs. It’s kind of a drag. When you see the same problem with another track, you begrudgingly do the swap a second time and hope that you won’t have to go through all that again. But when you notice it a third time, don’t lose your temper. Just break out the AppleScript.

The Code

This script gets the text from the nameand artistproperties of each of the selected tracks—or, if no tracks are selected, all the tracks in the selected playlist—and swaps them:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint