Created
February 22, 2009 05:20
-
-
Save nalanj/68343 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Script to display the names of files that are missing from your iTunes Library | |
| -- Adapted from the script at http://www.macosxhints.com/article.php?story=2007031309145927 | |
| tell application "iTunes" | |
| set thePlaylist to library playlist 1 | |
| set musicFiles to the file tracks of thePlaylist | |
| repeat with mf in musicFiles | |
| --the name of mf as string | |
| set hasLoc to "" | |
| if (the location of mf as string ¬ | |
| is equal to "missing value") then | |
| try | |
| set comment of mf to the comment of mf & "" | |
| on error number errNum | |
| display dialog the name of mf as string | |
| end try | |
| end if | |
| end repeat | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment