• 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: changing the order of an itunes playlist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing the order of an itunes playlist


  • Subject: Re: changing the order of an itunes playlist
  • From: Andrew Bush <email@hidden>
  • Date: Fri, 10 Mar 2006 15:25:48 +1300

Hi Nick,

thats both beautiful and awful :)

thanks.

Yours cheerfully,


Andrew Bush



> is this possible in applescript withing actually removing all the
> tracks and adding them in the desired order?  Ive tried everything I
> can think of but  with no joy...has anyone else done this successfully?



This probably shouldn't work but it does:

tell application "iTunes"
     move track 1 of playlist "My Playlist"
end tell

It moves the track to the end of the playlist. During a quick 10 minute foray into the iTunes scripting dictionary I couldn't find a way to move the track to a specific point in the playlist, but if that's not possible you could do something like this...

set runningOrder to {2, 9, 7, 10, 5, 1, 8, 6, 4, 3}
set trackIDs to {}

tell application "iTunes"
    repeat with x from 1 to count runningOrder
       set end of trackIDs to track (item x of runningOrder) of playlist "My Playlist"
    end repeat
   repeat with aTrack in trackIDs
       move aTrack
   end repeat
end tell



HTH


Nick pp Mr Tea

 --

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: changing the order of an itunes playlist (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Simple Script Request
  • Next by Date: Re: ANNOUNCE: Script Debugger 4.0.1 -- FEW POINTS
  • Previous by thread: Re: changing the order of an itunes playlist
  • Next by thread: Blank window when importing word in quark 4.1
  • Index(es):
    • Date
    • Thread