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:
Chuck Pelto <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 14 Apr 2008 10:03:50 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
Hi John,

On Apr 13, 2008, at 1:31 PM, John Delacour wrote:

>         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

THAT WORKS!!!!!

So it's not the 'track' that I should focus on, rather it is the  
LOCATION of the FILE of said 'track'.

Thanks.

That was not, repeat NOT, intuitively obvious.

Regards,

Chuck

ATOM RSS1 RSS2