Guest

Untitled

By: a guest on Jan 8th, 2012  |  syntax: AppleScript  |  size: 0.53 KB  |  hits: 73  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  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