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

WebKit+AppleScript+JavaScript


  • Subject: WebKit+AppleScript+JavaScript
  • From: Praveen Kumar <email@hidden>
  • Date: Wed, 16 Apr 2008 17:46:47 +0530

Hi,

I created a Cocoa application that uses WebKit to show the Html pages. The Javascript files access cocoa methods using the concept " Using Objective-C From JavaScript ". I got a issue after adding apple scriptability to the project. The app is not quitting from dock and also not quitting when the shutdown process sends the SIGTERM signal to it.

After a struggle i got to know that the issue is caused by the NSAppleScriptEnabled set to YES in the info.plist file. If i set to NO or remove it from info.plist then quit is working fine.

Instead of AppleScript, I tend to use NSTask to launch the application, but it won't use the active application instead it opens another one and do the stuff.

	Please let me know if you have any suggestions.

Thanks in advance,
M Praveen Kumar.
_______________________________________________

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


  • Follow-Ups:
    • Re: WebKit+AppleScript+JavaScript
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: binary search trees & binning
  • Next by Date: listing users
  • Previous by thread: HICocoaViewCreate question
  • Next by thread: Re: WebKit+AppleScript+JavaScript
  • Index(es):
    • Date
    • Thread