osx - AppleScript executed with NSAppleScript does not work -


I call and execute apple scripts in the main speech

  NSAppleScript * as = [[NSAppleScript alloc] initWithSource: @ "Application to request \" explorer \ ""];]; [Executed and return as: zero]; [Release]];   

but the script

  tell the application finder to call   

works well in AppleScript Editor is .

Your comment is welcome

How to check this result and error From

  NSDictionary * Errors = Zero; NSAppleEventDescriptor * Result = [Executed Andrator As Error: & amp; Errors]; NSLog (@ "Result:% @", Results); NSLog (@ "Errors:% @", Errors);    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -