• 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: Leaf capture problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leaf capture problem


  • Subject: Re: Leaf capture problem
  • From: kai <email@hidden>
  • Date: Thu, 2 Jun 2005 18:36:15 +0100


On Thursday, June 2, 2005, at 05:20 pm, email@hidden wrote:

The problem occurs when we get an error which freezes up the program until the OK button is hit. Any ideas as to how to automate this?

If the error is passed back to the script, you might try inserting a bit of UI scripting at the appropriate point. This, for example, assumes that the OK button is the default:


----------------

tell application "System Events" to tell process "Leaf Capture" (* or whatever it's specifically called *)
set frontmost to true (* if it's not already *)
keystroke return
end tell


----------------

Even if the required button is not the default, you should still be able to click it. In addition, if the script is not receiving an error message, you may also be able to detect the presence of the offending dialog through UI scripting. Shout if you need more clues...

---
kai

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Leaf capture problem (From: email@hidden)

  • Prev by Date: RE: EPS to JPEG
  • Next by Date: Re: EPS to JPEG
  • Previous by thread: Leaf capture problem
  • Next by thread: Re: Leaf capture problem
  • Index(es):
    • Date
    • Thread