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: Ron Fleckner <email@hidden>
- Date: Wed, 20 Jun 2007 01:33:47 +1000
On 20/06/2007, at 12:34 AM, Matt Neuburg wrote:
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.
Thanks very much, Matt. I was/am looking for a way to define a
command in the sdef which has NO parameter and NO return type.
Basically looking for a way to run a method with the following
signature:
- (void)startTimer;
As you can see, it takes no parameter and returns nothing. How can I
do this? Have a dummy return type, say, an unused integer or boolean?
Ron, who got sucked into Cocoa via Applescript.
_______________________________________________
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