
Untitled
By: a guest on Jan 8th, 2012 | syntax:
AppleScript | size: 0.53 KB | hits: 73 | expires: Never
tell application "iTunes"
set sel to selection
if sel is {} then
display dialog return & "No tracks are selected..." buttons {"Cancel"} default button 1 with icon 0 giving up after 15
return
else
set selR to a reference to sel
repeat with t from 1 to (length of sel)
set thisTrack to item t of selR
set albumName to (get thisTrack's album)
if albumName starts with "200" then
set thisTrack's album to (items 6 thru (length of albumName) of albumName as text)
end if
end repeat
end if
end tell