• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Dynamic Sdef support - anyone had any luck? (Andy Klepack)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Dynamic Sdef support - anyone had any luck? (Andy Klepack)


  • Subject: RE: Dynamic Sdef support - anyone had any luck? (Andy Klepack)
  • From: Andy Klepack <email@hidden>
  • Date: Mon, 2 Feb 2009 13:30:39 -0800
  • Acceptlanguage: en-US
  • Thread-topic: Dynamic Sdef support - anyone had any luck? (Andy Klepack)

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: cocoa-dev-bounces+andy.klepack=email@hidden [cocoa-dev-bounces+andy.klepack=email@hidden] On Behalf Of Jesse Grosjean [email@hidden]
Sent: Monday, February 02, 2009 11:28 AM
To: email@hidden
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@hidden)

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:

This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >RE: Dynamic Sdef support - anyone had any luck? (Andy Klepack) (From: Jesse Grosjean <email@hidden>)

  • Prev by Date: Re: Read lines from very large text file
  • Next by Date: Re: Read lines from very large text file
  • Previous by thread: RE: Dynamic Sdef support - anyone had any luck? (Andy Klepack)
  • Next by thread: Re: NSOpenPanel - disabling the "Open" button for certain folders.
  • Index(es):
    • Date
    • Thread