Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebKit+AppleScript+JavaScript



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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.