Re: iTunes Help
Re: iTunes Help
- Subject: Re: iTunes Help
- From: Chris Garaffa <email@hidden>
- Date: Wed, 22 Dec 2004 22:55:23 -0500
From: email@hidden
Subject: Re: iTunes Help
Date: December 22, 2004 10:46:32 PM EST
To: email@hidden
On Dec 22, 2004, at 10:28 PM, Richard Darenberg wrote:
Chris,
That did it. Thanks a ton. Do you know if you can specify the shuffle option for the playlist?
I searched the dictionary but didn't find it.
Rick,
Sure there's a way to toggle shuffle. Insert this line right before the end tell:
set shuffle of thePlaylist to true --change true to false to turn shuffle off.
That should do it for you.
Glad I could help.
--
Chris Garaffa
email@hidden
http://incessant.nilzero.com
On Dec 22, 2004, at 5:10 AM, email@hidden wrote:
On Dec 21, 2004, at 5:01 PM, Richard Darenberg wrote:
Chris,
Thanks for responding so quickly. Unfortunately, this script would
compile but not run. The error message
was "handler only handles single objects"
Also, I wasn't very clear on what I was trying to do. I really only
want to play music from a playlist on a shared library.
I was thinking for error checking purposes, I should first make sure
the shared library was available before trying to play it.
Is there a special way to tell iTunes to play music on a shared
library? My shared library name is "PM Server Music" and the
playlist I'm looking for is called "Christmas". (Imagine that!).
Rick,
Sorry about that - the second line of the script (after the tell block
opens) should be:
set theSource to first item of (every source whose kind is shared
library)
I'd forgotten to put the parentheses in there.
Try this script out to play music from the shared library
--Tested with iTunes 4.7,
tell application "iTunes"
set theSource to first item of (every source whose kind is shared
library and name is "NilTunes")
set thePlaylists to every playlist of theSource
set thePlaylist to item 1 of (every playlist of theSource whose name
is "Chrismas") play first track of thePlaylist
end tell
And of course, let me know how it goes.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden