Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'some applescript code mixed with some one-line shell scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
some applescript code mixed with some one-line shell scripts
Authored by: simondorfman on Feb 13, '09 12:17:26PM
I've been working on updating this script to give a choice for a second monitor. This is what I'm using right now:

set screenWidth to word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Width") as number
set screenHeight to word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Height") as number
set secondMonitorWidth to word 6 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Width") as number
set secondMonitorHeight to word 6 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Height") as number


[ Reply to This | # ]