Re: How to add a custom applescript command to sdef
Re: How to add a custom applescript command to sdef
- Subject: Re: How to add a custom applescript command to sdef
- From: Matt Neuburg <email@hidden>
- Date: Tue, 19 Jun 2007 07:34:51 -0700
- Thread-topic: How to add a custom applescript command to sdef
On Tue, 19 Jun 2007 13:39:35 +1000, Ron Fleckner
<email@hidden> said:
>I haven't been
>able to work out how to add a custom command to my app's AppleScript
>dictionary
There are two approaches. Both are documented by my book (see my sig), but
in your case it sounds like all you need is the first technique, which is
discussed in my scriptability tutorial:
<http://www.tidbits.com/matt/scriptability/scriptabilityTutorial.html>
Plus Apple has a very nice example specifically aimed at this issue:
<http://developer.apple.com/samplecode/SimpleScriptingVerbs/index.html>
There are *lots* of other online tutorials, plus Apple offers *lots* of
example code showing how to do exactly what you want, so a little homework
will get you going here. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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