• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need help in gui scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >RE: Need help in gui scripting (From: "BADRINATH, NANDINI" <email@hidden>)

  • Prev by Date: Re: iTunes Picture data
  • Next by Date: Re: Filling a cell in Excel
  • Previous by thread: RE: Need help in gui scripting
  • Next by thread: open location not working
  • Index(es):
    • Date
    • Thread