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

c++ - 'std::string' has no member named 'get' list[i]=user.get; -

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

java - Instances of classes -