![]() Telling the application to change the bounds of a window is faster but it doesn't work with all applications. When you tell System Events to change the position and size through the accessibility API, there is a noticeable delay between when the position and the size are changed. Set bounds of window 1 to Ĭlick (button 1 of window 1 where subrole is "AXZoomButton") Tell application (path to frontmost application as text) Tell application "Finder" to set b to bounds of window of desktop I have used FastScripts to assign a shortcut to this script: try Or add a line like this to ~/.slate with Slate: bind m:cmd shift move screenOriginX screenOriginY screenSizeX screenSizeY If you want the shortcut to always maximize a window to fill a screen, you can use for example Spectacle: ![]() ![]() Assign a shortcut for the Zoom menu item (or whatever it's called in your locale) from System Preferences:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |