Re: Display Colors
Re: Display Colors
- Subject: Re: Display Colors
- From: Johnny AppleScript <email@hidden>
- Date: Fri, 17 Sep 2004 21:28:25 -0600
-- if you don't mind installing cscreen (free), it really is a nice way of
scripting monitor settings, especially with multiple displays; setting your
primary or single display to 256 colors is as simple as this:
set screenCommand to "/path/to/folder/cscreen -d 8"
do shell script screenCommand
-- setting it back to thousands or millions requies only changing the last
digit:
set screenCommand to "/path/to/folder/cscreen -d 32"
do shell script screenCommand
-- It's only a few lines lines more to determine the current setting, and
switch between the two automatically. If you have multiple displays, you
will need to specify the display index for the target display, but note that
there's a little hidden trick that display index ID 1 is actually specified
by 0, index 2, by 1, index 3 by 2, etc., when using multiples and
getting/setting data
set screenInfoCommand to "/path/to/folder/cscreen -l"
do shell script screenInfoCommand
screenInfoCommand --look for the output in Event Log or Result History
--finally, you can figure out the rest of your options and syntax, such as
changing resolutions or refresh rates thusly:
set screenHelpCommand to "/path/to/folder/cscreen -h"
do shell script screenHelpCommand
screenHelpCommand --look for the output in Event Log or Result History
-- HTH, JA
On 04/09/17 8:59 PM, "Micahel B. Smith" <email@hidden> wrote:
> I recently upgraded the school labs from OS9 to OSX 10.3. When the macs
> were in OS9 I had an AS that wouold change the display to 256 colors if
> a program required that. The student would simply activate the script
> and the monitor colors would change to 256.
>
> In OSX I am finding that it may not be that simple. I have read in
> other places that a terminal application called cscreen is needed on
> the computer then a script can call that to make the changes.
>
> Is this the case? I have tried to make a script that will open System
> Preferences and the Display Pane but without much luck.
>
> Can someone tell me if this is possible and perhaps provide a few lines
> to get me started? I sure would appreciate it!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden