• 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
UI scripting: how to click 'OK' in Photo-Paint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: UI scripting: how to click 'OK' in Photo-Paint
      • From: Bill Cheeseman <email@hidden>
    • Re: UI scripting: how to click 'OK' in Photo-Paint
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: what happened to Mail's scripts menu?
  • Next by Date: Re: UI scripting: how to click 'OK' in Photo-Paint
  • Previous by thread: Re: AS driving Perl (or vice-versa)
  • Next by thread: Re: UI scripting: how to click 'OK' in Photo-Paint
  • Index(es):
    • Date
    • Thread