Re: click using option down button 2 of window 1
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