MACSCRPT Archives

April 2008

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Delacour <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sun, 13 Apr 2008 20:31:23 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
At 12:11 -0600 13/4/08, Chuck Pelto wrote:

>		set testList to (every track of thisPlaylist) as list
>		...
>		add testList to wakePlaylist
>
>
>So....what am I doing wrong here?

addÊv : add one or more files to a playlist
   add list of alias : the file(s) to add

A track is not an alias.  Therefore:

         tell application "iTunes"
           set _playlist1 to playlist "music"
           set _tracks to tracks in _playlist1
           set _playlist2 to make playlist with properties {name:"TEMP"}
           set _shortlist to items 1 through 12 of _tracks
           repeat with _track in _shortlist
             set _alias to location of _track
             add _alias to _playlist2
           end repeat
         end tell

JD

ATOM RSS1 RSS2