• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UI scripting: how to click 'OK' in Photo-Paint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >UI scripting: how to click 'OK' in Photo-Paint (From: Wim Melis <email@hidden>)

  • Prev by Date: UI scripting: how to click 'OK' in Photo-Paint
  • Next by Date: Re: UI scripting: how to click 'OK' in Photo-Paint
  • Previous by thread: UI scripting: how to click 'OK' in Photo-Paint
  • Next by thread: Re: UI scripting: how to click 'OK' in Photo-Paint
  • Index(es):
    • Date
    • Thread