• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete? (From: DeNigris Sean <email@hidden>)

  • Prev by Date: Re: File's owner, outlets and methods
  • Next by Date: Re: detect "left mouse button clicked in menu bar"
  • Previous by thread: Can I tell [NSAppleScript executeAppleEvent] to wait for script to complete?
  • Next by thread: Cocoa window in Carbon app and [NSApp postEvent]
  • Index(es):
    • Date
    • Thread