GUI Scripting: clicking button in FM Pro dialog box
GUI Scripting: clicking button in FM Pro dialog box
- Subject: GUI Scripting: clicking button in FM Pro dialog box
- From: Henrik Boes <email@hidden>
- Date: Fri, 20 Jun 2003 12:02:26 -0600
Hello,
I am trying to automate an export from one FM database to another FM
database and need to GUI script the clicking of the field export
procedure, specifically which fields get exported. I want to have the
AppleScript (see below) click the "move all" button and then do a
return keystroke to allow the FM script to finish. The return keystroke
is recognized, the clicking of the "Move all" button is not, leaving me
with a dialog in FM saying that no fields were selected for export.
I imagine the problem is that I haven't properly identified the "Move
All" button. Problem is, I'm not sure how to do that. Any help would be
appreciated.
TIA,
Henrik Boes
tell application "FileMaker Pro"
go to window "Job_Book Test.fp5"
do script FileMaker script "Export"
end tell
delay 10
tell application "System Events"
tell process "FileMaker Pro"
window "Specify Field Order for Export"
click button "Move All"
delay 5
keystroke return
end tell
end tell
_______________________________________________
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.