Popup Menu and Enabling Start Button

Hello All,

My first post!! Perhaps a very elementary question but, here goes. I have a popup menu of 3 items (named: select, item1, item2, with select being the default setting) . When window is launched, the start button is set to false (disabled). In order to make the start button true, I need to select either item1 or item2 and the start button will trigger a script based on which item was chosen.

Thanks and I look forward to some input.

Found a solution at the Apple Dev. forum:

on action theObject
	tell window "merger"
		if (((name of theObject) is "select") and (((title of current menu item of popup button "select") is equal to ".xls")) then
			set the enabled of button "merge" to true
		end if
	end tell
end action

Do you want it to deactivate if the user then changes the selection to something invalid? I would just put an else in there to make sure the button is deactivated unless the correct condition is met.

on action theObject
   tell window "merger"
       if (((name of theObject) is "select") and (((title of current menu item of popup button "select") is equal to ".xls")) then
           set the enabled of button "merge" to true
       else
           set the enabled of button "merge" to false
       end if
   end tell
end action