• 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: Mr Tea <email@hidden>
  • Date: Fri, 10 Mar 2006 01:14:50 +0000

Title: Re: changing the order of an itunes playlist
This from Andrew Bush - dated 9/3/06 10.36:

> 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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: changing the order of an itunes playlist
      • From: Andrew Bush <email@hidden>
References: 
 >changing the order of an itunes playlist (From: Andrew Bush <email@hidden>)

  • Prev by Date: Re: Simple Script Request
  • Next by Date: Re: Simple Script Request
  • Previous by thread: changing the order of an itunes playlist
  • Next by thread: Re: changing the order of an itunes playlist
  • Index(es):
    • Date
    • Thread