re: Why is the iTunes script flakey?
re: Why is the iTunes script flakey?
- Subject: re: Why is the iTunes script flakey?
- From: Charles Arthur <email@hidden>
- Date: Fri, 31 May 2002 11:15:47 +0100
On Thu, 30 May 2002 12:25:00 -0700, Gabe Benveniste <email@hidden> 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"
IME files that are listed in iTunes browser windows sometimes don't resolve
- so you should error trap, for one thing.
As someone else pointed out, ID3 tags below (I think) v2 don't
support track numbers - so you'll have to do a separate test for that too.
And if you've converted something up from v1 then the track data will be
less-than-blank (ie could error out trying to get its value).
BTW don't let the chief exec at Pixar see you wasting time on iTunes. I
hear he's rilly skary.
best
Charles
----------------------------
http://www.ukclimbing.com : 1100+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. And there's even a cool shop attached.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.