Re: AppleScript and plug-ins
Re: AppleScript and plug-ins
- Subject: Re: AppleScript and plug-ins
- From: Scott Thompson <email@hidden>
- Date: Thu, 30 Jun 2005 10:04:35 -0500
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:
This email sent to email@hidden