Mailing Lists: Apple Mailing Lists

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

Carbon-style AppleScript support in Cocoa



Hello,
Q: What is the correct procedure to let the OS know that a Cocoa application is scriptable using an aete resource?


I'm trying to implement basic AppleScript support in my Cocoa application. I am using the NSAppleEventManager class to handle events, because the features i want are not suitable for the "new" (Cocoa) way of doing apple events. I have created an aete resource (in the datafork of a resource file with the correct name and location) which defines the script terminology supported by the application. However, Script Editor does not see it. If i set the NSAppleScriptSupported flag to YES in info.plist, i am only able to see the standard Cocoa suites. Otherwise, Script Editor will not allow me to look at the application at all.

Cheers,
Fabl

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