Re: Exploring AppleScript APIs
Re: Exploring AppleScript APIs
- Subject: Re: Exploring AppleScript APIs
- From: has <email@hidden>
- Date: Tue, 1 Apr 2008 14:24:03 +0100
Torsten Curdt wrote:
On Apr 1, 2008, at 14:10, Jean-Daniel Dupas wrote:
There is a Cocoa application X that is Apple-scriptable.
Is there any way to find out what functions are supported ...except
having proper documentation at hand?
Drop the application icon on the "Script Editor" Application. (in /
Applications/AppleScript/)
It will open it's Scripting dictionary.
Some more options:
- ASDictionary <http://appscript.sourceforge.net/tools.html> exports
application dictionaries as plain text and HTML in AppleScript and
appscript formats. A command line tool for viewing individual class/
command definitions and inheritance/relationship graphs is also
included.
- Python and Ruby appscript both support interactive browsing of
application dictionaries and object models from the command line. e.g.
See <http://MacDeveloperTips.com/ruby/ruby-as-applescript-alternative-part-6.html
> for a nice introduction.
- Late Night Software's commercial Script Debugger <http://www.latenightsw.com/sd4/
> provides a slick GUI-based interface for exploring application
dictionaries and object models.
Be aware that application dictionaries do not, by themselves, provide
sufficient information to control scriptable applications (a perennial
bugbear). If the application vendor supplies supplementary
documentation and example scripts, make use of it. If not (and most
don't), expect to do some trial-and-error experimentation, and ask
around the AppleScript community for help and examples. Oh, and file a
feature request for more comprehensive documentation with the
developer, of course.
Also, here's a few links of use:
http://lists.apple.com/mailman/listinfo/AppleScript-users/ -- main
AppleScript mailing list
http://www.macscripter.net/ -- lots of third-party AppleScripts here
http://dougscripts.com/ -- lots of iTunes scripts here
Most AppleScripters aren't trained programmers so a lot of the code
you'll encounter is less than brilliantly written. However, with a
decade's worth of collective experience and code behind it, the
AppleScript community is the primary source of knowledge and
assistance for dealing with specific applications and related problems.
HTH
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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