Re: Ruby and AppleScript
Re: Ruby and AppleScript
- Subject: Re: Ruby and AppleScript
- From: Matt Neuburg <email@hidden>
- Date: Sat, 29 Mar 2008 10:47:48 -0700
- Thread-topic: Ruby and AppleScript
On Wed, 26 Mar 2008 08:32:48 -0700, Paul Scott <email@hidden> said:
>With this and other non-AppleScript solutions you still have to fire
>up Script Editor to open the appropriate dictionary so you've got some
>clue as to what you can do with an application.
Mmmmmm, no. Appscript includes a tool that gives you a Ruby-language version
of the dictionary, shown to you as a nice HTML page.
What I usually *do* "fire up" is Script Debugger, because I want to explore
the actual objects of the actual object model of the actual app as it is
running at this moment. Appscript gives you a way to perform such
exploration interactively but SD's Inspector is just too fast and easy and
intuitive for me to use anything else.
The mapping between the AS names of things and the Ruby names of things is
trivial; I just "guess" the Ruby name given the AS name, and I have never
failed to guess correctly. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden