Re: Getting the name of a Window with non-Scriptable App?
Re: Getting the name of a Window with non-Scriptable App?
- Subject: Re: Getting the name of a Window with non-Scriptable App?
- From: Ed Stockly <email@hidden>
- Date: Tue, 23 Sep 2008 11:09:09 -0700
Is there anyway I can have my Script Wait until this window is
displayed and then keystroke the "Ok" button?
On Sep 23, 2008, at 5:06 AM, KOENIG Yvan wrote:
Isn't it what is "giving up after 2000" designed to do?
That's what giving up is designed to do for dialogs displayed by your
script, it has no control over dialogs raised by an unscriptable
application.
You could do a repeat loop, something like this...
------
tell application myApp
repeat
activate
tell application "System Events"
if exists button "Save" of sheet 1 of window dialogWindowName
then
click button "Save" of sheet 1 of window dialogWindowName
exit repeat
else
delay 2
end if
end tell
end repeat
end tell
------
The trick is identifying the window and button you need to click.
I would use PreFab's UI Browser to get a solid reference to the
window/button, which you can paste into your script.
Apple also has similar app, but I haven't used it since I installed
UI Browser.
HTH,
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden