Re: Re: Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete?

2009-08-14 Thread DeNigris Sean
H, 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. Ha ha, yes,

Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete?

2009-08-13 Thread DeNigris Sean
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? Thanks! Sean DeNigris s...@clipperadams.com

Re: Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete?

2009-08-13 Thread Jerry Krinock
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? H, my