320- (void)playiTunesPlaylist:(NSString*)playlistName
322 NSString* ootunesScriptString =
324 @"with timeout of 1 second\n"
325 " tell application \"iTunes\"\n"
326 " copy playlist \"%@\" to thePlaylist\n"
327 " if thePlaylist exists then\n"
328 " play some track of thePlaylist\n"
334 NSAppleScript* ootunesScript = [[[
NSAppleScript alloc] initWithSource:ootunesScriptString] autorelease];
335 NSDictionary* errDict =
nil;
339 OOLog(
@"sound.music.iTunesIntegration.failed",
@"ootunes returned :%@", errDict);
static OONullTexture * sSingleton