Re: Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete?
Re: Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete?
- Subject: Re: Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete?
- From: Jerry Krinock <email@hidden>
- Date: Thu, 13 Aug 2009 19:47:23 -0700
On 2009 Aug 13, at 15:45, DeNigris Sean wrote:
When I use [NSAppleScript executeAppleEvent] to call handlers in a
compiled script, it returns immediately.
Is there a way to get it to block until the script is finished?
Maybe there a notification I can listen for?
Hmmmm, my NSAppleScript Class Reference documentation does not list
any such method. It does list -executeAppleEvent:error: and -
executeAndReturnError:, both of which return "The result of executing
the event", which implies that they must wait for the script to
complete.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden