|
|
A script to resize frontmost two windows to fill screen
For what it's worth, all of the scripts in this thread try to determine the screen size by scanning through the com.apple.windowserver plist. Unfortunately, this just doesn't work if you have multiple DisplaySets.
For example, on my laptop:
% defaults read /Library/Preferences/com.apple.windowserver | grep -w Width Width = 800; Width = 1024; Width = 1024; Width = 1024; Width = 1024; Width = 1920; Width = 1024; Width = 800; Width = 800; Width = 1680; Width = 1024; Width = 1024; Width = 1024; Width = 800; Width = 1024; Width = 1024; Width = 1024; Width = 1680; Width = 800; Width = 800; Width = 800; Width = 800; Width = 1680; Width = 1024; Width = 1680; Width = 1024; Width = 800; Width = 800; Width = 1680; Width = 1024; Width = 1680; Width = 1024; Width = 1680; Width = 1024; Width = 1680; Width = 800; Width = 800;MacOS apparently remembers every display that you've used (and you can see that I have used many). What we want is to find the current display dimensions, but that's not indicated in this plist. I found a post elsewhere that asked Safari to run a JavaScript that returns screen.availHeight and screen.availWidth. Extra Suites provides an AppleScript extension with screen dimension information. I don't know a general, free solution to get the screen dimensions.
A script to resize frontmost two windows to fill screen
here's what I put in for getting the desktop size:
A script to resize frontmost two windows to fill screen
Here's a link to some great window maneuvering apple scripts: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.12 seconds |
|