View Single Post
  #1  
Old June 25th, 2003, 11:39 PM
phatcactus's Avatar
phatcactus phatcactus is offline
The Ugly Organist
 
Join Date: Aug 2002
Location: Chicago
Posts: 330
Thanks: 0
Thanked 0 Times in 0 Posts
phatcactus is on a distinguished road
Simple Applescript Studio question...

I have really no AppleScript experience, so I figure I should ask for some help before my head explodes. I'm trying to change the title of a menu item when a drawer opens.

Code:
on opened theObject
	if name of theObject = "theDrawer" then
		tell window "mainWindow" to set title of button "drawerButton" to "Hide Drawer"
		tell menu "mainMenu" to set title of menu item "drawerMenuItem" to "Hide Drawer"
	end if
end opened
The button changes just fine, but the menu item is giving me all kinds of problems. Could someone help me out with the right syntax? drawerMenuItem is in a menu called viewMenu, if that helps at all...
Reply With Quote