Mailing Lists: Apple Mailing Lists

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

Re: Carbon-style AppleScript support in Cocoa




On 14 Dec 2004, at 11:15, Fabian Lidman wrote:

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.

Is this really a problem? I have to do the same thing in my carbon application and http://developer.apple.com/documentation/MacOSX/Conceptual/ BPRuntimeConfig/Concepts/PListKeys.html doesn't seem to say that this key says anything other than applescript is supported.

Fred

_______________________________________________
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
References: 
 >Carbon-style AppleScript support in Cocoa (From: Fabian Lidman <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.