Re: Need help in gui scripting
Re: Need help in gui scripting
- Subject: Re: Need help in gui scripting
- From: John Hawkinson <email@hidden>
- Date: Wed, 2 Jun 2004 15:13:02 -0400
BADRINATH, NANDINI <email@hidden> wrote on Wed, 2 Jun 2004
at 18:08:03 +0530 in <email@hiddenacific .cpqcorp.net>:
>
I am trying to write UI scripts for QuarkXPress. When I have a
>
click button "Say X"
>
in my script, the script editor does not give an error but the button
>
does not get clicked also. In the results tab in Script editor the
>
message 'Button X of application... of process..." is displayed which
>
means that the button is selected... But it does not get clicked. What
>
could possible be the reason and can you suggest any workarounds?
Many elements of the user interface are not properly scriptable in
QuarkXPress. One choice is to use an additional tool, like Extra
Suites (download from
http://www.kanzu.com/software/extrasuites.sit),
to click the button. Extra Suites costs $10, but you can use the demo
without paying.
Then you can click your button with something like:
---cut
on ESclickbutton(a, w, b)
tell application "System Events" to tell window w of process p to -- opt-L
set p to postion of button b
tell application "Extra Suites"
ES move mosue p
ES pause 1
ES click mouse
end tell
end ESclickbutton
ESclickbutton("QuarkXPress", "Create Job", "Select Folder...")
---cut
(replace "-- opt-L" with an option-L character)
--jhawk
_______________________________________________
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.