Why is the iTunes script flakey?
Why is the iTunes script flakey?
- Subject: Why is the iTunes script flakey?
- From: Gabe Benveniste <email@hidden>
- Date: Thu, 30 May 2002 12:25:00 -0700
Here's a script i made to set the id3 track number to whatever the first
two digits of an mp3's filename are. For some reason it seems to flake
out on a third of files that it should work on (ie have the right kind
of filename)
tell application "iTunes"
set these_tracks to the selection of browser window 1
repeat with i from 1 to the count of these_tracks
set this_track to item i of these_tracks
set trloc to get the location of this_track
tell application "Finder"
set trackname to get the name of trloc
end tell
set realnumber to do shell script "echo " & trackname & " |
cut -c 1-2"
set the track number of this_track to realnumber
set the track count of this_track to the count of these_tracks
end repeat
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.