Skip to content

Instantly share code, notes, and snippets.

@gravelld
Created August 15, 2017 10:35
Show Gist options
  • Save gravelld/52e1661c7196973ac84a4c9bdd0fef6d to your computer and use it in GitHub Desktop.
Save gravelld/52e1661c7196973ac84a4c9bdd0fef6d to your computer and use it in GitHub Desktop.
An AppleScript that refresh's iTunes' stored metadata from the selected music files.
tell application "iTunes"
set sel to selection
if sel is {} then return
repeat with aTrack in sel
if class of aTrack is file track then refresh aTrack
end repeat
end tell
@chemboy
Copy link

chemboy commented Sep 27, 2018

This looks great. Excuse my ignorance, but where do I select the music files - in iTunes or in the iTunes Media > Music directory? Do I have to select the mp3 files [ie each album individually] or will it search through directories? Looking forward to using this script cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment