Re: GUI scripting the Open dialog [WORKAROUND]
- Subject: Re: GUI scripting the Open dialog [WORKAROUND]
- From: Kaspar Fischer <email@hidden>
- Date: Fri, 4 Aug 2006 01:04:30 +0200
- Delivered-to: email@hidden
- Delivered-to: email@hidden
It seems that the problem can be circumvented by simply performing
Cmd-Shift-g again:
tell application "System Events"
tell process "Blabla"
-- here, the Open dialog is on-screen
delay 1
keystroke "g" using {command down, shift down}
delay 1
keystroke (TestsuitePath & "/File.mp3") -- (*)
delay 1
click button "Go" of window "Go To Folder"
delay 1
-- do it again (this is the workaround)
keystroke "g" using {command down, shift down}
delay 1
click button "Go" of window "Go To Folder"
delay 1
click button "Open" of sheet 1 of doc
delay 1
end tell
end tell
Kaspar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/accessibility-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.