Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Setting monitor to grayscale

Setting monitor to grayscale
Thread Tools
Chuck E
Guest
Status:
Reply With Quote
Jul 10, 2000, 06:13 PM
 
Anyone know how to set your monitor to grayscale. I know you can use 'set monitor depth 8' to set it to 8 bit, but it is in color.

Any idea's?

Thanks,

Chuck
     
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Jul 11, 2000, 08:23 AM
 
Hi,

I'm not certain, but I don't think that Apple's standard 'MonitorDepth' scripting additon allows you to switch a monitor's color/gray mode. However, there is at least one available third-party scripting addition (Jon’s Commands) that would let you do so.

Below is some sample code that can force the main (menu-bar) monitor or any desired monitor to use 8-bit grays:-
Code:
-- ----------------------------------------------------------------------------------------------------- -- // NOTE: This script requires the 'Jon’s Commands' OSAX on run try -- First, retrieve the list of information-records for all monitors -- (preferably with the one for the main monitor placed at the head of the list) set theMonitorInfoRecords to (screen list starting with main screen) -- Next, set up the desired monitor(s) to use 8-bit grays repeat with thisMonitorInfoRecordRef in theMonitorInfoRecords -- Check whether this monitor is suitable (OPTIONAL) -- [This sample just checks for the main monitor and simply assumes it's 8-bit—capable] if (has menu bar of thisMonitorInfoRecordRef) then -- It's the main monitor -- Specify that this monitor is now to use 8-bit colors/grays… set the color depth of thisMonitorInfoRecordRef to 8 -- …and then specify that it is now to be in grayscale mode set the in color of thisMonitorInfoRecordRef to false -- [Abort the loop, if just this one monitor is to be changed] exit repeat end if end repeat -- Finally, apply any changes that were made to the monitor information-record(s) above set screens to theMonitorInfoRecords on error errMsg number errNum -- Hopefully, the monitor isn't screwed up too badly, and this error-dialog can be seen! display dialog ("Sorry, the monitor adjustment failed!" & return & return & "(" & errNum & ") " & errMsg) ¬ buttons {"Stop"} default button 1 with icon stop end try return end run
If you prefer not to use any third-party scripting additions, someone else may be able to provide a "native" solution that requires only pure AppleScript or official Apple scripting additions.

Regards,

--Paul

[This message has been edited by Paul Crawford (edited 07-11-2000).]
     
Chuck E
Guest
Status:
Reply With Quote
Jul 11, 2000, 04:51 PM
 
Thanks for the info. Sadly, I need a solution for a standard mac set scripting additions.

Anyone else with an idea?

Chuck
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2