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: AppleScript and plug-ins




On Jun 29, 2005, at 11:05 AM, John Calsbeek wrote:

Is it possible for a plug-in to add new script suites to the main application? I'm thinking about putting most of my application's functionality in the plug-ins, but not if it means forfeiting AppleScript. Of course, this could be a complete non-issue... I haven't worked enough with Cocoa & AppleScript to be sure. Somehow I'm thinking that this is possible, and that the reason Script Editor launches an application before it opens its script directory is to give it a chance to load its plug-ins... is that totally off- base?

I know you could do this in the past. You had to declare that your application has dynamic scripting support and then respond to some apple events that allow you to provide information on your scripting dictionary. As part of that process, you ask the plugins for their scripting dictionaries and merge them into your own.


The mechanism is predicated on handling the GetAETE Apple Event. The sticky part may be the fact that Cocoa wants to handle this event for you. You may have to do some extra work to figure out how to insert your own response into the results that Cocoa returns by default.

You might search the article archives on Applescript-Implementors at lists.apple.com to see if you can find more information on how to do this from Cocoa properly.

Scott

_______________________________________________
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: 
 >AppleScript and plug-ins (From: John Calsbeek <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.