# Permanently setting 256 colors on OS X 10.4.11

**URL:** <https://boards.straightdope.com/t/permanently-setting-256-colors-on-os-x-10-4-11/439757>\
**Category:** Factual Questions\
**Created:** [March 1, 2008, 6:18pm UTC](https://boards.straightdope.com/t/permanently-setting-256-colors-on-os-x-10-4-11/439757 "2008-03-01T18:18:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cleophus](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@Cleophus](https://boards.straightdope.com/u/Cleophus)\
**Post date:** [March 1, 2008, 6:18pm UTC](https://boards.straightdope.com/t/permanently-setting-256-colors-on-os-x-10-4-11/439757/1 "2008-03-01T18:18:28Z")

</div>

I have an iBook G4 with bad graphics hardware, where the screen is corrupted at bit depths of 16 bit or more. I don’t have the money to replace the logic board, so I’ve been using a workaround by dropping the bit depth to 8 bit, but the setting is not preserved across reboots. Is there a plist I can change so the setting is preserved?

---

<div class="post-metadata">

**Author:** ![pulykamell](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pulykamell/32/3166_2.png) [@pulykamell](https://boards.straightdope.com/u/pulykamell)\
**Post date:** [March 1, 2008, 6:56pm UTC](https://boards.straightdope.com/t/permanently-setting-256-colors-on-os-x-10-4-11/439757/2 "2008-03-01T18:56:14Z")

</div>

Is there a reason you can’t go System Preferences \> Displays \> 256 Colors?

Edit: Wait, the option is grayed out on mine. I thought there was a setting somewhere you can change in the System Preferences that will allow you to use non-recommended settings, but I can’t seem to locate it.

---

<div class="post-metadata">

**Author:** ![pulykamell](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pulykamell/32/3166_2.png) [@pulykamell](https://boards.straightdope.com/u/pulykamell)\
**Post date:** [March 1, 2008, 7:03pm UTC](https://boards.straightdope.com/t/permanently-setting-256-colors-on-os-x-10-4-11/439757/3 "2008-03-01T19:03:55Z")

</div>

Hmmm…there used to be a “Show Modes Recommended By Display” option, but Leopard doesn’t seem to have that anymore.

---

<div class="post-metadata">

**Author:** ![Cleophus](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@Cleophus](https://boards.straightdope.com/u/Cleophus)\
**Post date:** [March 1, 2008, 8:40pm UTC](https://boards.straightdope.com/t/permanently-setting-256-colors-on-os-x-10-4-11/439757/4 "2008-03-01T20:40:56Z")

</div>

[QUOTE=pulykamell]  
Is there a reason you can’t go System Preferences \> Displays \> 256 Colors?

Edit: Wait, the option is grayed out on mine. I thought there was a setting somewhere you can change in the System Preferences that will allow you to use non-recommended settings, but I can’t seem to locate it.  
[/QUOTE]

I can. That’s how I change the setting, but the setting is not preserved across reboots. It’s probably because 256 colors is supposed to be a compatibility mode for legacy applications

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [March 1, 2008, 11:55pm UTC](https://boards.straightdope.com/t/permanently-setting-256-colors-on-os-x-10-4-11/439757/5 "2008-03-01T23:55:44Z")

</div>

The preference is stored here:Users/ \<your\_login\_name\> /Library/Preferences/ByHost/com.apple.preference.displays. \<M.A.C. Ethernet address\> .plist

You may have better luck writing a script to change it at login.

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [March 2, 2008, 4:37am UTC](https://boards.straightdope.com/t/permanently-setting-256-colors-on-os-x-10-4-11/439757/6 "2008-03-02T04:37:19Z")

</div>

Here’s a hint on how to script it:

> **[Macworld](https://www.macworld.com)**
>
> Macworld is your ultimate guide to Apple's product universe, explaining what's new, what's best and how to make the most out of the products you love.

---

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [March 2, 2008, 6:38am UTC](https://boards.straightdope.com/t/permanently-setting-256-colors-on-os-x-10-4-11/439757/7 "2008-03-02T06:38:07Z")

</div>

Here’s an Applescript that works for me.

```auto

set desireddepth to "t"
--Change this to "m" or "2" to set the depth to millions or 256 respectively.

tell application "System Preferences" to activate
--delay 1 --uncomment for slow Macs

tell application "System Events"
	tell application process "System Preferences"
		click button "Displays" of scroll area 1 of window 1 --works
		
		--delay 1 --uncomment for slow Macs
		click pop up button 1 of group 1 of tab group 1 of window 1
		
		keystroke desireddepth
		
		key code 36 --this is like hitting the return key (and accepting the menu choice)
		delay 1
		key code 36 --hit the return key again in case that nasty "you're about to do what you want to do" dialog pops up.
	end tell
end tell
tell application "System Preferences" to quit
say "Oakey doke" --can delete this line if it annoys

```

Save this from Script editor as an application, and have it run at login.

You have to turn on “enable access for assistive devices” in the Universal access preference pane to get this script to work.
