Re: UI Scripting FileMaker
Re: UI Scripting FileMaker
- Subject: Re: UI Scripting FileMaker
- From: Gary Lists <email@hidden>
- Date: Fri, 25 Jul 2003 10:58:15 -0400
On or about 7/25/03 6:13 AM, Bill Cheeseman wrote:
>
on 03-07-24 5:04 PM, David Graham at email@hidden wrote:
>
>
> I haven't had any success in trying to directly access elements (e.g.,
>
> buttons, radio buttons, etc.) in FileMaker using GUI scripting. I've
>
> downloaded the demo version of UI Browser and the code it generates
>
> isn't helping me. Am I wasting my time or has somebody figured out how
>
> to do it?
>
>
FileMaker has been a problem case. Give me 2 or 3 specific buttons in
>
specific windows, and I'll see what I can do.
>
>
--
>
>
Bill Cheeseman
David,
I'm sure Bill could do quite a lot, despite his humble "I'll see..".
But perhaps both you and Bill would be interested in...
I've dealt with FM's quirky non-standard window-widget implementation with
my OS9-only tool called "KQas" -- which is an extensive AS library that
controls KeyQuencer to automate the batch creation of FM fields, layouts and
such, creating them, naming them and generally saving me hours of time.
It would not be useful to you as is (since KQ is not available for OSX), but
the code would be very useful. The KeyQuencer macros must access button and
menu names, numbers and / or point references for many FM window widgets,
especially in the complex Define Field dialog and in the menu system.
As an example, you'll find in that code things like this, with copious notes
and comments:
-- sift kinds of fields and corresponding window widget
-- define fields dialog button numbers
-- 14 Text radio button
-- 15 Num radio button
-- 16 Date radio button
-- 17 Time radio button
-- 18 Container radio button
-- 19 Calculation radio button
-- 20 Summary radio button -- Not Included Here
-- 21 -- Global radio button
--
set click_kind to ""
set thisType to thisType as text
if thisType = "Text" then set click_kind to click_kind & "Button 14"
if thisType = "Number" then set click_kind to click_kind & "Button 15"
if thisType = "Date" then set click_kind to click_kind & "Button 16"
if thisType = "Time" then set click_kind to click_kind & "Button 17"
if thisType = "Container" then set click_kind to click_kind & "Button
18"
I would be happy to send you that code, so you could pull out some of the
long-struggled over references.
--
Gary
(If I were a confident shareware developer, I would have sold this thing for
a few bucks, as it is definitely a time saver...you can drop multiple FM
files on it and it will add the same field, with the same definition, to
every file (even entering the same default value for Calc fields, if you
want). Or create the same named layout in dozens of files at once, with no
FM clicking/typing by the user. I don't know why I didn't do it years ago.
It even still amazes me that I got it all going at all.
If anyone uses OS9 and builds complex FM projects, this might be useful to
you. It's a drop-app as well as an AS lib file that has prebuilt KQ macros
as 'do script' statements. You pass the parameters for field name and type,
or layout name and it does the work like some crazed genie in your Mac.)
_______________________________________________
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.