Thursday, November 23, 2017

#1 2005-10-12 02:38:06 pm

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

Can I change my screen resolution with a script?

In OS 9 and back, if you have a monitor that supports multiple resolutions, you can change resolutions with a command in the scripting addition Jon's Commands. This popular suite of commands includes  "set screens", which will do the job.

Here is a simple example:

Applescript:

set screens to {screen size:{640, 480}}

In OSX, you can use the Lynn Pye's command-line utility cscreen, which you can download here.

Eg:

Applescript:

do shell script "path/to/cscreen -x 1024 -y 768"

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)