Friday, July 30, 2010

#1 2005-04-30 04:14:04 pm

iBackup
Member
Registered: 2004-07-26
Posts: 46
Website

display resolution

Hi
How do I get the display resolution if the file /Library/Preferences/com.apple.windowserver does not exist?

Offline

 

#2 2005-05-01 12:21:49 am

jonn8
Member
From: New York
Registered: 2003-05-01
Posts: 1763
Website

Re: display resolution

There are a lot of ways to do it. This is what I use in AS Studio projects:

--Open this script in a new Script Editor window.

set {x1, y1, x2, y2} to call method "frame" of (call method "mainScreen" of class "NSScreen")
set the_resolution to {x2, y2}

Jon

-------------------------
[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Offline

 

#3 2005-05-01 07:46:27 am

iBackup
Member
Registered: 2004-07-26
Posts: 46
Website

Re: display resolution

It works!
Thanks lol

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.099 seconds, 8 queries executed ]

RSS (new topics) RSS (active topics)