• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Display Colors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display Colors


  • Subject: Re: Display Colors
  • From: Johnny AppleScript <email@hidden>
  • Date: Fri, 17 Sep 2004 21:54:04 -0600

Whoops! That had a couple of confusing lines! Sorry; try this:

-- 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/parentfolder/cscreen -d 8"
do shell script screenCommand

-- setting it back to thousands or millions requires only changing the last
digit:

set screenCommand to "/path/to/parentfolder/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/parentfolder/cscreen -l"
Set sInfo to do shell script screenInfoCommand
sInfo --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/parentfolder/cscreen -h"
Set sHelp to do shell script screenHelpCommand
sHelp --look for the output in Event Log or Result History

 _______________________________________________
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

References: 
 >Re: Display Colors (From: Johnny AppleScript <email@hidden>)

  • Prev by Date: Re: Display Colors
  • Next by Date: Duplicate messages
  • Previous by thread: Re: Display Colors
  • Next by thread: Duplicate messages
  • Index(es):
    • Date
    • Thread