Re: UI scripting: how to click 'OK' in Photo-Paint
Re: UI scripting: how to click 'OK' in Photo-Paint
- Subject: Re: UI scripting: how to click 'OK' in Photo-Paint
- From: Yvan KOENIG <email@hidden>
- Date: Sun, 17 Jul 2005 15:35:37 +0200
Le 17 juil. 2005 , à 14:43, Wim Melis a écrit :
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?
Hello
I don't own the app so I can't check but it may be useful to activate
it before calling GUIscripting.
tell application "corel photo-paint 10"
activate
end tell
tell application "System Events"
tell process "corel photo-paint 10"
tell window "Adaptive Unsharp"
-- the code
end tell -- window
end tell -- process
end tell -- app System Events
Sometimes it works, sometimes it doesn't.
One which doesn't is the Search-Replace dialog of AppleWorks 6.
Yvan KOENIG (from FRANCE 17 juillet 2005 15:35:29)
_______________________________________________
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