Skip to content

Instantly share code, notes, and snippets.

@stojg
Created October 15, 2014 00:55
Show Gist options
  • Save stojg/1e25f0e9afd586be2396 to your computer and use it in GitHub Desktop.
Save stojg/1e25f0e9afd586be2396 to your computer and use it in GitHub Desktop.
Refresh Tracks.scpt
(*
Install in /Library/iTunes/Scripts
*)
tell application "iTunes"
if selection is {} then
display dialog "No tracks selected. Select some tracks with some stale tags." buttons {"I will!"} ¬
default button 1 with icon 0
else
set sel to selection
repeat with myTrack in sel
if myTrack's class is file track then
tell myTrack
refresh myTrack
end tell
end if
end repeat
display dialog "Selected tags have been freshened up." buttons {"Okay"} ¬
default button 1
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment