Re: applescript-users digest, Vol 2 #1272 - 17 msgs
Re: applescript-users digest, Vol 2 #1272 - 17 msgs
- Subject: Re: applescript-users digest, Vol 2 #1272 - 17 msgs
- From: Kevin Gogerty <email@hidden>
- Date: Sun, 04 Nov 2001 21:22:06 -0600
Hay Tyler..
I been messing around with iTunes and the scripting dictionary since the
release. The answer to your problem is
tell application "iTunes"
set thisplaylist to make new playlist
set name of thisplaylist to "myplaylist"
duplicate track 14 of playlist 1 to user playlist "myplaylist"
end tell
give that a go.. should work
Kevin Gogerty
email@hidden
http://www.tbl2000.com/applescript
-----
>
>
First of all I'd like to let everybody know that I did get iTunes2
>
before they pulled it, and I did install it on 2 machines with 10.1 on
>
it. One of them a dual partition machine - and there were absolutely no
>
problems. I'm not saying it's worth the risk to those who haven't
>
installed it yet, but I'm just pointing out that it's just an installer
>
issue, but maybe some type of other configuration issue.
>
>
SO - on with the question (which relates to iTunes2 scripting). I'm
>
relatively inexperienced with AppleScript, so perhaps I'm just
>
overlooking something obvious. I can not figure out how to get a track
>
from the library on to a playlist. I can create a new playlist:
>
>
set thisplaylist to make new playlist
>
set name of thisplaylist to "myplaylist"
>
>
and that works just fine. I can also tell iTunes to start and stop and
>
all that just nice. I can even get it to play a certain track number in
>
the library:
>
>
set mytrack to track 2
>
play mytrack
>
>
but for some reason I can't figure out how to - for example - put track
>
2 into my newly created playlist.
>
>
Any of you with iTunes2 success have any suggestions for this?
>
>
Thanks,
>
Tyler