Re: iTunes: how do you play just one track?
Re: iTunes: how do you play just one track?
- Subject: Re: iTunes: how do you play just one track?
- From: Donald Hall <email@hidden>
- Date: Mon, 21 Apr 2003 00:14:47 -0600
Thanks for the reply, Emmanuel. I tried the following:
tell application "iTunes"
set myPlaylist to playlist "Recently Played"
set theFile to location of (track 6 of myPlaylist)
open theFile
end tell
This played track 6, but did not stop there. It went on to play the
track after track 6 in the main library. iTunes 3.01, OS X 10.2.3.
I've also tried creating a new playlist with one entry. That seems
okay, except that I can't easily remove the temporary playlist. I
would have to way until the track finished before deleting it.
Don
At 12:07 AM -0600 2003/04/21, Donald Hall wrote:
>
At 12:30 AM -0600 20/04/03, Donald Hall wrote:
>
>I've been experimenting with scripting iTunes. It seems that the
>
>"play" command can't be used to play just one track. For example:
>
>
>
>tell application "iTunes"
>
> play track aTrack of playlist aPlayList
>
>end tell
>
>
OMM,
>
>
tell application "iTunes" to open alias thePath
>
>
plays only that track. I did not test that, but I suspect that you
>
can also use:
>
>
tell application "Finder" to open alias thePath using alias theAppliPath
>
>
Emmanuel
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.