X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/b47e6e5323fd89a08e418d1b635d9e8dcb48f043..6703bfe7928b4a1e570cbf8617ef79c3185accad:/MenuTunes.m?ds=sidebyside diff --git a/MenuTunes.m b/MenuTunes.m index 884af16..2a584ee 100755 --- a/MenuTunes.m +++ b/MenuTunes.m @@ -45,6 +45,8 @@ Things to do: - (void)applicationDidFinishLaunching:(NSNotification *)note { currentRemote = [self loadRemote]; + [currentRemote begin]; + asComponent = OpenDefaultComponent(kOSAComponentType, kAppleScriptSubtype); [self registerDefaultsIfNeeded]; @@ -767,7 +769,6 @@ andEventID:(AEEventID)eventID - (void)playPause:(id)sender { - NSString *rawr; NSString *state = [self runScriptAndReturnResult:@"return player state"]; if ([state isEqualToString:@"playing"]) { [self sendAEWithEventClass:'hook' andEventID:'Paus'];