PDA

View Full Version : reference by range. Applescript.




fhill2
Jun 22, 2012, 09:29 PM
I need get names of playlists in iTunes by range.
For example:

tell application "iTunes" to name of playlists 3 thru 6

Compiles but execute properly with error:
iTunes got an error: Canít get name of playlists 3 thru 6

I have made sure there are atleast 6 playlists in itunes.
Thanks.



Red Menace
Jun 23, 2012, 12:26 AM
Getting the playlists results in a list that can be indexed like any other, for example:

tell application "iTunes" to get items 3 thru 6 of (get name of playlists)

fhill2
Jun 23, 2012, 03:43 PM
this makes more sense. Thanks!