iTunes -- Remove Missing Tracks?
iTunes -- Remove Missing Tracks?
- Subject: iTunes -- Remove Missing Tracks?
- From: Pete Dako <email@hidden>
- Date: Thu, 30 Jan 2003 12:49:00 -0500
Hi,
Apple's AppleScript website has provided some good example scripts
for iTunes which can be found in a file called
"itunes-scripts.OSX.sit" (
http://www.apple.com/applescript/itunes/
). The package even adds an iTunes Script Menu which reminds of early
pioneer days messing around with Userland Frontier... fun stuff!
It's also been verrry edumacational. For example, I was able to
quickly rewrite one of the lengthy example scripts (which originally
used display dialogs and version checking,etc.) into a very speedy
and useful script which toggle iTunes sound off and on while keeping
iTunes in the background:
tell application "iTunes"
if mute is true then
set mute to false
else
set mute to true
end if
end tell
One script in this package, called "Remove Missing Tracks" removes
missing tracks from the iTunes library. Sounds very useful for
dumping library references to all those songs you've burnt to CD
and/or deleted. Unfortunately, this script breaks down for me with
the error message "No result was returned from some part of this
message" -- highlighting 'missing value' in the following excerpt:
repeat with i from the (count of tracks) to 1 by -1
if the location of track i is missing value then
delete track i
Has anyone run this script and/or are they able to explain what's
broken here? I have a feeling it just might be a version compatabilty
thing again as with Barbara's System Events 1.2 dependent script
yesterday. It says on the site that the scripts require iTunes 2.0.3
and OS 10.1.
I'm running into this error on iTunes 3 with 10.2.3 (all original
software no beta).
thanx, Pete
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.