how do I disable a button? dooh!

I know this could sounds ridiculous but I can’t find out how to disable a push button (NSbutton) after the “on clicked theObject” script.

can you please help me ? :slight_smile:


set enabled of theObject to false
-- OR --
set enabled of button "myButton" of window "someWindow" to false

j

it works like a charm

thanks for your precious help