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

Re: Option key down in Yosemite


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

Oops, forgot to say thanks to Shane for providing the answer!


Much appreciated!

P



On 2 Oct 2014, at 19:31, 2551 <email@hidden> wrote:

On 2 Oct 2014, at 18:22, Shane Stanley <email@hidden> wrote:

Have you tried this?


Why of course not. That would assume I'd bothered to look in the Dictionary... ;-)


OK, for those who are mouse or trackpad-o-phobic like me, I use this with FastScripts (or you can make a Service), and use the hotkey 'control-cmd-z' to toggle window zooms. In particular, I find it a lifesaver when I unplug the mac from an external display and need to get window bounds back within the visible desktop of the smaller screen. 

tell application "System Events"
set frontapp to (name of processes whose frontmost is true) as string
end tell

tell application frontapp
set x to zoomed of window 1
if (x) then
set zoomed of window 1 to false
else
set zoomed of window 1 to true
end if
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

References: 
 >Option key down in Yosemite (From: 2551 <email@hidden>)
 >Re: Option key down in Yosemite (From: Shane Stanley <email@hidden>)
 >Re: Option key down in Yosemite (From: 2551 <email@hidden>)

  • Prev by Date: Re: Option key down in Yosemite
  • Next by Date: Re: Option key down in Yosemite
  • Previous by thread: Re: Option key down in Yosemite
  • Next by thread: Re: Option key down in Yosemite
  • Index(es):
    • Date
    • Thread