• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is the iTunes script flakey?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Why is the iTunes script flakey?
      • From: Gabe Benveniste <email@hidden>
References: 
 >Why is the iTunes script flakey? (From: Gabe Benveniste <email@hidden>)

  • Prev by Date: Re: AppleScript commands for AppleWorks Spreadsheets
  • Next by Date: Installing AS 1.8 from ADC
  • Previous by thread: Why is the iTunes script flakey?
  • Next by thread: Re: Why is the iTunes script flakey?
  • Index(es):
    • Date
    • Thread