- (void)applicationDidFinishLaunching:(NSNotification *)note
{
currentRemote = [self loadRemote];
+ [currentRemote begin];
+
asComponent = OpenDefaultComponent(kOSAComponentType, kAppleScriptSubtype);
[self registerDefaultsIfNeeded];
- (void)playPause:(id)sender
{
- NSString *rawr;
NSString *state = [self runScriptAndReturnResult:@"return player state"];
if ([state isEqualToString:@"playing"]) {
[self sendAEWithEventClass:'hook' andEventID:'Paus'];