Re: UI Scripting of FileMaker
Re: UI Scripting of FileMaker
- Subject: Re: UI Scripting of FileMaker
- From: Gary Lists <email@hidden>
- Date: Wed, 19 Nov 2003 16:57:52 -0500
- Http: //bau2.uibk.ac.at/sg/python/Sounds/HolyGrail.wav/taunt.wav
On or about 11/19/03 2:33 PM, Simon Forster wrote:
>
Hi
>
>
I'm looking at UI Scripting having been away from it for a little while
>
and I'm struggling. Specifically I want to see whether I can script
>
FileMaker Pro's Script Editor - and the answer seems to be a resounding
>
no. For example, the "View" popup button in the top left corner of the
>
script editor when editing a script seems to consist of an empty array.
>
Indeed, when I get UI Scripting to click on it, we have an empty list.
>
>
Has anyone had any joy in scripting FM's script editor? If so, would
>
you like to pass on a hint or two as I'm stuck.
>
>
TIA
>
>
Simon Forster
Simon,
FM does not implement dialog and window 'widgets' in a typical, or even
consistent, way across all of the three major 'windows' (Define Field,
Define Layout, Script Editor). Some items are normally accessible (via
KeyQuencer, SysEvents and other UI tools) while some are not.
The PreFab Browser may shed some light on the construction of the Script
Editor window (that window is an odd list of grouped commands that does not
seem to be recognized as a dialog resource, at least with KQ.) I use OS9, so
I don't know from UI scripting on that platform.
Of Tangential or Related Interest...
A few months ago, a number of folks tested my "KQasFM Tool", which is an
AppleScript applet that allows you to create layouts and define fields in
FM5.5 and FM6. It is a library of KeyQuencer macros written in, and called
by, AppleScript.
While the script wouldn't be of executable interest for you, the code might,
as I have also included copious comments which provide the 'widget ID' of
most of the accessible buttons, menus and drop-downs for the Define Fields
and Define Layouts windows of FM. The Script Editor window did not easily
lend itself to KeyQuencer UI automation, so I do not include that
functionality. (Frankly, the automation of script creation has limited
practical applicability -- and potential security risk -- so it wouldn't
make sense for me to pursue even if the interface were more exposed to
third-party tools. But...you know what you're doing...right? ;)
I will gladly mail it to anyone who cares to have a look. (The ability to
automate field and layout definition has been a great time saver for me. And
it's pretty cool to watch if you're really bored, or trying to impress a FM
Windows user :)
HTH,
--
Gary
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.