Guest User

Untitled

a guest
May 19th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "iTunes"
  2.     set sel to selection
  3.     if sel is {} then
  4.         display dialog return & "No tracks are selected..." buttons {"Cancel"} default button 1 with icon 0 giving up after 15
  5.         return
  6.     else
  7.         set selR to a reference to sel
  8.         repeat with t from 1 to (length of sel)
  9.             set thisTrack to item t of selR
  10.             set albumName to (get thisTrack's album)
  11.             if albumName starts with "200" then
  12.                 set thisTrack's album to (items 6 thru (length of albumName) of albumName as text)
  13.             end if
  14.         end repeat
  15.     end if
  16. end tell
Add Comment
Please, Sign In to add comment