Re: Why is the iTunes script flakey?
Re: Why is the iTunes script flakey?
- Subject: Re: Why is the iTunes script flakey?
- From: Olivier Destrebecq <email@hidden>
- Date: Thu, 30 May 2002 17:02:41 -0500
did you check the version of the ID3 tag, i'm not sure that all format
support the track number, so that might be where your problem is.
Olivier
On Thursday, May 30, 2002, at 02:25 PM, Gabe Benveniste wrote:
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.
_______________________________________________
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.