Re: Leaf capture problem
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