dougscripts.com

August 10 2017 - 10:23 am

Refresh a Track From Its File's Metadata

If you make changes to the file of an iTunes track in another application, iTunes doesn't always immediately update its database with the changes until you've played the track or tapped its Get Info window.

This is a relatively old AppleScript command, but refresh is intended to do this. This script will compel iTunes to update the selected track entries in the database with information from the metadata of the their 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

Site contents © 2001 - 2024 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not be interrupting the one who is doing it.