Re: Play Playlist in iTunes
Re: Play Playlist in iTunes
- Subject: Re: Play Playlist in iTunes
- From: "Mr. Gecko" <email@hidden>
- Date: Wed, 1 Oct 2008 21:16:31 -0500
I think I would just use this AppleScript call
[[[NSAppleScript alloc] initWithSource:[NSString
stringWithFormat:@"tell application \"iTunes\" to play playlist \"%@
\"", [self replace:@"\"" with:@"\\\"" source:[sender title]]]]
executeAndReturnError:nil];
Works fast enough for me and it would work with " because I use my
replace function to make it \".
Thanks for your help and for letting me know about Scripting Bridges,
Mr. Gecko
On Oct 1, 2008, at 1:10 PM, Uli Kusterer wrote:
On 01.10.2008, at 19:51, Mr. Gecko wrote:
Hello I am needing to know how to play a playlist in iTunes using
AppleEvents. I am able to get the Playlist ID and the Playlist
Persistent ID from the iTunes Database. I just need to know how to
tell iTunes to play it.
'Scripting Bridge', or if you need to support 10.4 or earlier,
NSAppleScript.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden