• 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
Option key down in Yosemite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Option key down in Yosemite


  • Subject: Option key down in Yosemite
  • From: 2551 <email@hidden>
  • Date: Thu, 02 Oct 2014 17:02:26 +0700

Is this a bug, or am I making an error?

In 10.10, we now have to press the option key down while clicking the green button to get the 'zoom' behaviour on full-screen enabled apps.

My attempts to simulate that in AS have failed, with the option key down command failing to have any effect. This script produces exactly the same effect with or without the two option key commands, i.e., Xcode goes into full screen mode. Not only is that now the desired effect, but once in full-screen mode the app is out of range of any 'frontmost' call, which I need in the full version of the script.

Anyone got any ideas?

tell application "System Events"
option key down
delay 0.25
try
tell application process "Xcode"
tell window 1
tell button 2
click
end tell
end tell
end tell
end try
option key up
end tell

 _______________________________________________
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: Option key down in Yosemite
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: OFF TOPIC: ³Shell Shock² for my system MacOS 10.6.8 bash version 3.2.48(1)
  • Next by Date: Re: Option key down in Yosemite
  • Previous by thread: Re: OFF TOPIC: ³Shell Shock² for my system MacOS 10.6.8 bash version 3.2.48(1)
  • Next by thread: Re: Option key down in Yosemite
  • Index(es):
    • Date
    • Thread