• 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
Why is the iTunes script flakey?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Why is the iTunes script flakey?
      • From: Olivier Destrebecq <email@hidden>
  • Prev by Date: Re: Write a prefs file
  • Next by Date: No Subject
  • Previous by thread: Re: applescript-users digest, Vol 3 #507 - 14 msgs
  • Next by thread: Re: Why is the iTunes script flakey?
  • Index(es):
    • Date
    • Thread