Getting main menu items to dim

Hello,
I’m a beginner to Applescript Studio, so please forgive me if this is assinine:

I’m trying to make a section of my interface dim if a certain checkbox is checked. I do not have any sample code, because I don’t even know where to begin.

Any help as to how to do this would be greatly appreciated!

set this_object to .
set enabled of this_object to false

Feel free to reply if you need some more help than that.

Thanks so much. It worked with buttons, but is there different code for dimming a text field?
Basically, this is what I’ve got: I’m writing an app that batch prints hard copies or PDF files from QuarkXPress, and I’ve got the items controlling the hard copy printing separated from the PDF printing. I have a checkbox for “Print” and for “PDF”, and I want the PDF options to dim when the “Print” checkbox is checked and vice versa.

The code you gave me helped me get the PDF checkbox and a second button to dim, but I have a text field describing the second button (“To folder…”) that remains opaque.

Here’s what I have:

if the name of theObject = “selectPrint” then
set enabled of button “selectPDF” to false
set enabled of button “selectFolder” to false
set enabled of text field “toFolder” to false
end if

Thanks for your time and kindness…

you can change it’s background color:

if the name of theObject = "selectPrint" then
            set enabled of button "selectPDF" to false
                set enabled of button "selectFolder" to false
                set enabled of text field "toFolder" to false
	set background color of  text field "toFolder" to {50000, 50000, 50000}

            end if

The colors are R,G,B from 0 to 65535 play with the numbers to get the color you want.

The text field should dim when not enabled, the font will lighten a little, but the field still stays white.