WebKit+AppleScript+JavaScript
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