Ah! Thanks Jesse, that's very straight forward.

So having gotten it working in 10.5... what kind of support is there for 
dynamic sdef in 10.4 (if any)? It looks like the value of 'dynamic' for 
OSAScriptingDefinition was only enabled in 10.5 but perhaps there is a way 
around that?

- Andy
________________________________________
From: [email protected] 
[[email protected]] On Behalf Of 
Jesse Grosjean [[email protected]]
Sent: Monday, February 02, 2009 11:28 AM
To: [email protected]
Subject: RE: Dynamic Sdef support - anyone had any luck? (Andy Klepack)

> Has anyone had any luck implementing a dynamic sdef using a plugin model? 
> Nothing fancy, targeting 10.5+, I haven't
> been able to locate any examples of this actually being done or documentation 
> on how to do it.
>
> The 10.5 scripting release notes 
> (http://developer.apple.com/ReleaseNotes/Cocoa/Foundation.html#Scripting) 
> make a
> few allusions to this support but the closest implementation I have found is 
> to use a static-sdef for the host application
> that has definitions for all the plugins it expects to load (a la 
> http://lists.apple.com/archives/Applescript-
> implementors/2006/Aug/msg00002.html)

I have it mostly working in my apps. The code that merges together the
plugin sdefs can be found here:

http://github.com/jessegrosjean/blocks/blob/54b6bccb2fd144c4618376de2e73245267fecb25/BExtensionRegistry.m

Then search for "handleGetSDEFEvent". It's been a while since I looked
over that code, but it seems to be working OK for my apps.

Jesse
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/andy.klepack%40microsoft.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to