Re: iTunes 'current playlist'
Re: iTunes 'current playlist'
- Subject: Re: iTunes 'current playlist'
- From: Kevin Gogerty <email@hidden>
- Date: Mon, 05 Nov 2001 13:32:39 -0600
Craig,
The playlist window has to be open for this to work...
tell application "iTunes"
set playName to name of playlist window 1
set currentTrack to name of current track
end tell
I will work on this some more....
Kevin
http://www.tbl2000.com/applescript
>
From: email@hidden
>
Reply-To: email@hidden
>
Date: Mon, 5 Nov 2001 10:47:50 -0800 (PST)
>
To: email@hidden
>
Subject: applescript-users digest, Vol 2 #1276 - 16 msgs
>
>
Date: Mon, 5 Nov 2001 12:21:30 -0500
>
To: email@hidden, email@hidden
>
From: Craig Treleaven <email@hidden>
>
Subject: iTunes 'current playlist'
>
>
Does anybody know how to determine the name of the current playlist with
>
iTunes 2's new Applescript support? The "view" property of class browser
>
window looks promising, but I don't seem to be able to get the name from it.
>
>
"Get view" returns something like the following:
>
library playlist id 1234 of source id 30 of application "iTunes"
>
>
Asking for "Name of view" returns exactly the same thing. (Huh?) I'm not a
>
heavy-duty Applescripter so I may be overlooking something very obvious.
>
>
BTW, locating the current playlist was always ackward and slow with SoundJam.
>
There you have to loop through the playlist windows and search for the one
>
whose tracks contains the current track. I was hoping iTunes might be a
>
little cooperative.
>
>
Craig
>
>
Craig Treleaven, Clearview Consulting
>
(905) 829-2054 email@hidden