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: ascr:gsdf



On 2007-11-16, at 07:15, Philip Aker wrote:

In Leopard my Carbon application doesn't have to use an aete anymore. Excellent.

I see here in the release notes:

Support for Dynamic .sdef-Declared Scriptability

... For "dynamic" OSAScriptingDefinition Info.plist entries, this function sends an 'ascr'/'gsdf' Apple event, so you can return .sdef scripting declarations that are computed at run-time, to take plug-in scriptability into account, for instance. You have to register a handler for the Apple event.

I register a handler for ascr:gsdf but am not receiving it. It's not declared in the app's sdef itself. It that the cause?


Thanks to an off-list reply from one of the more shy retiring list members, that problem is solved.

In case anyone is interested, one difference in behavior is that 'ascr:gdut' is still sent first thing after RAEL but 'ascr:gsdf' is not. I was actually expecting gsdf to be first (because that would be the cue to install the sdef handlers of your app's frameworks and bundles) and then fallback to gdut when not handled.

Cheers,

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden
References: 
 >ascr:gsdf (From: Philip Aker <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.