I want to close the drawer through scripting, i am using
“myDrawer’s close_()” but its not working…

omit the underscore character, because the close() command doesn’t require a parameter

its getting error message…

i have few buttons on main window and if i click on that button, drawer opens. drawer also has few buttons, so if user click on drawer’s button then i want to close the drawer and disable other buttons.

pls suggest

i got an error saying : “unrecognized selector sent to instance”

pls help

Could be a wrong connection in Interface Builder

this is my script:

script handleDrawerAppDelegate.applescript

property parent : class “NSObject”
property myDrawer : missing value —connected to drawer content view in IB

on Push_(sender) — connected to close button on drawer.

myDrawer’s |close| ()

end Push_

connect the property to the drawer object, not to the content view

thanks a ton…