HELP Remove Missing Tracks from iTunes Library
HELP Remove Missing Tracks from iTunes Library
- Subject: HELP Remove Missing Tracks from iTunes Library
- From: Pete Dako <email@hidden>
- Date: Fri, 7 Feb 2003 02:13:17 -0500
Hi again!
I am going to try reposting my question with the actual script in the
message this time .
It's an Apple supplied iTunes script from their website but it won't
run on my machine.
The "Remove Missing Tracks" is supposed to remove song references in
the iTunes Library for all songs that have been removed from your
drives. Can someone tell me if it will run for them or why it's not
running for me?
When I run it I get the following Apple Script Error:
"No result was returned from some part of this expression"
with "missing value" highlighted in the repeat /if then section below...
thanks in advance...
--------------------------------------
display dialog "This script will remove every track, whose
cooresponding file is missing, from the Library." & return & return &
,
"This action cannot be undone." buttons {"Remove
Tracks", "Cancel"} default button 2 with icon 2
display dialog "Beginning process." & return & return & ,
"One moment
" buttons {"*"} default button 1 giving up after 1
set the stored_setting to fixed indexing
set fixed indexing to true
tell source "Library"
tell playlist "Library"
-- delete (every track whose location is missing value)
set the counter to 0
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
set the counter to the counter + 1
end if
end repeat
end tell
end tell
set fixed indexing to the stored_setting
display dialog "Process complete." & return & return & ,
(counter as string) & " tracks were deleted." buttons
{"OK"} default button 1
end tell
_______________________________________________
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.