Tuesday, September 2, 2014

#1 2005-10-13 04:09:29 pm

julifos
Administrator
From: Malasa├▒a, Madrid
Registered: 2002-11-20
Posts: 2014

How can I get the screen resolution?

You can use the command screen list, from Jon's Commands:

Applescript:

screen size of (screen list)'s item 1

Which will return the resolution of the first monitor in your system.

You can also try this vanilla solution:

Applescript:

{word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Width") as number, ├?┬Č
   word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Height") as number}

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.052 seconds, 12 queries executed ]

RSS (new topics) RSS (active topics)