Re: Value List
Re: Value List
- Subject: Re: Value List
- From: has <email@hidden>
- Date: Sat, 26 Apr 2008 01:51:37 +0100
On 26 Apr 2008, at 01:23, Tom Chen wrote:
Hi,
I want to programmatically go through all the possible combinations of
commands/settings in the Mac Office Powerpoint Dictionary. I'm able to
obtain a list of properties of classes programmatically, but not these
enumeration constants. I guess a workaround could be to hardcode the
enumeration constants once and use it as a library. I guess I am stuck
going this route.
Hardcoding would likely be simplest.
If you really want to explore an application dictionary
programmatically and are a competent coder willing to do some of the
legwork yourself, the py-osaterminology package in appscript's
subversion repository includes a full aete parser. There's also a
class in the appscript help modules (included in ASDictionary) for
walking a reference to find out what it's pointing to. The APIs are
largely undocumented and not officially stable, but they're reasonably
robust and not too hard to figure out with a bit of study and trial
and error exploration.
Or you could maybe cheat by installing the asdict command line tool
included with ASDictionary, using it in non-interactive mode to look
up class definitions, and parsing its output yourself.
HTH
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
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