• 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: click using option down button 2 of window 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: click using option down button 2 of window 1


  • Subject: Re: click using option down button 2 of window 1
  • From: Nigel Garvey <email@hidden>
  • Date: Sun, 26 Oct 2014 12:58:23 +0000

Robert Poland wrote on Sat, 25 Oct 2014 15:16:49 -0600:

>Hi,
>
>Now that Yosemite screwed with the green button, how do I "click" in
>Applescript using Option down?

Hi Robert.

It looks as if "green" buttons (if you use the "Blue" appearance) which
are so screwed have two 'actions' in GUI Scripting: 'action "AXPress"',
which causes the full-screen effect, and 'action "AXZoomWindow"', which
causes the window merely to zoom as before. The "green" buttons in some
application windows aren't screwed and these only have the "AXPress"
action, which in this case causes zoom rather than full screen.

  tell application "System Events"
    tell application process "Blah"
      tell button 2 of window 1
        if (action "AXZoomWIndow" exists) then
          perform action "AXZoomWindow"
        else
          perform action "AXPress"
        end if
      end tell
    end tell
  end tell


NG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: click using option down button 2 of window 1
      • From: Nigel Garvey <email@hidden>
    • Re: click using option down button 2 of window 1
      • From: Nigel Garvey <email@hidden>
  • Prev by Date: Re: "Redirect" script for Mailsmith
  • Next by Date: Re: click using option down button 2 of window 1
  • Previous by thread: Re: click using option down button 2 of window 1
  • Next by thread: Re: click using option down button 2 of window 1
  • Index(es):
    • Date
    • Thread