UI scripting: how to click 'OK' in Photo-Paint
UI scripting: how to click 'OK' in Photo-Paint
- Subject: UI scripting: how to click 'OK' in Photo-Paint
- From: Wim Melis <email@hidden>
- Date: Sun, 17 Jul 2005 14:43:42 +0200
Hi all,
I'm trying to get a script working that applies Adaptive Unsharpening in
Corel Photo-Paint 10. There's no AS support, so I made my first attempt at
UI scripting.
Most of it works now: I can open a file, activate the Adaptive Unsharp
window, enter values, save and close the file. Problem is: once the Unsharp
window is on screen, I can't find a way to activate the "OK" button to apply
it.
I've tried all of these options:
tell application "System Events"
tell process "corel photo-paint 10"
tell window "Adaptive Unsharp"
click button "OK"
tell button "OK"
set x to position
click at x
end tell
tell button "OK" to perform action
keystroke (ASCII character 13)
end tell
end tell
end tell
But none of them works. Any ideas?
Thanks, Wim
--
email (home): email@hidden
email (office): email@hidden
http://www.noorderlicht.com * Noorderlicht photofestival
_______________________________________________
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