• 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: WebKit+AppleScript+JavaScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebKit+AppleScript+JavaScript


  • Subject: Re: WebKit+AppleScript+JavaScript
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 17 Apr 2008 09:34:53 -0700


On 17 Apr '08, at 9:08 AM, Praveen Kumar wrote:

I created a sample cocoa+webkit application and added apple scriptability. I execute the script on this application from script editor. The application opened the given url successfully, but i can't able to quit the application from the dock (right click on the application icon on the dock and select quit option). If i open the application and load the url manually then it is quitting fine from the dock.

Is the app otherwise responsive to user events while it's in this state?
Try sampling it — I suspect it's somehow running a nested runloop while still handling the initial AppleEvent. The 'quit' AppleEvent sent by the Dock will stay queued until your open-URL event handler returns.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >WebKit+AppleScript+JavaScript (From: Praveen Kumar <email@hidden>)
 >Re: WebKit+AppleScript+JavaScript (From: Jens Alfke <email@hidden>)
 >Re: WebKit+AppleScript+JavaScript (From: Mike Abdullah <email@hidden>)
 >Re: WebKit+AppleScript+JavaScript (From: Praveen Kumar <email@hidden>)
 >Re: WebKit+AppleScript+JavaScript (From: Jean-Daniel Dupas <email@hidden>)
 >Re: WebKit+AppleScript+JavaScript (From: Praveen Kumar <email@hidden>)

  • Prev by Date: Re: Capsule-Style Toolbar Controls
  • Next by Date: Re: NSArrayController bound to @unionOfArrays not updating
  • Previous by thread: Re: WebKit+AppleScript+JavaScript
  • Next by thread: listing users
  • Index(es):
    • Date
    • Thread