I’m using NSAppleScript to sent a message to another app using "tell
application”. It works twice then the third time my app gets stuck in the call
to executeAndReturnError: and doesn’t return.
The code is as follows, with sample AppleScript:
NSAppleScript *script = [[NSAppleScript alloc] initWithSource:@"tell
application \"Safari\" to open location \"http://lists.apple.com\""];
NSDictionary *error = nil;
NSAppleEventDescriptor *rc;
rc = [script executeAndReturnError:&error];
[script release];
Any ideas why this gets stuck on the third execution? The program is a daemon
process running in the background as a different user to the logged in user.
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]