Re: Applescript command and sdef
Re: Applescript command and sdef
- Subject: Re: Applescript command and sdef
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 04 Mar 2006 14:28:35 -0500
- Thread-topic: Applescript command and sdef
on 2006-03-04 1:37 PM, Jacken at email@hidden wrote:
> I wonder if anyone could point me to an example on how to make a
> Applescript command. My program is 10.4 only, so I'm just using
> a .sdef file to describe my applescript commands. I managed to get
> setting and getting values, but I can't get a command going. I tried
> to read Apple's documentation, but It always goes back to how to do
> it the "old" way, not with .sdef files. All I need is for a class
> method to be called when a applescript command is executed. Anyone
> have an example or link to a web site with more info?
Download PreFab UI Actions from <http://www.prefab.com/uiactions/>, install
it (run UI Actions Setup), then go to ~/Library/ScriptingAdditions and find
the UI Actions application. Use the Finder's contextual menu to open the
application package, and find the sdef file at Contents > Resources >
UIActionSuite.sdef. I left the sdef file in the package so people like you
could look at it for examples of the latest in sdef technique. I think this
may still be the only example available of how to include html-based
comments and script examples in your AppleScript dictionary.
If you have no other interest in UI Actions, you can uninstall it by
trashing the UI Actions application and the UI Actions Setup application
(and, if you care, the com.prefab.uiactions and com.prefrab.uiactionssetup
preference files).
You can also find Apple's latest "official" sdef file for the Standard Suite
and the Text Suite at the developer sample code site. Look for the
ScriptingDefinitions sample updated in November 2005.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden