On Jul 7, 2005, at 7:24 AM, Christopher Hickman wrote:
Chris,
Have you tried a call method to set the tag and see if it reads back
correctly in AppleScript?
call method "setTag:" of the_menu_item with parameter 12345
set the_tag_value to tag of the_menu_item
-- result: 12345
Does that work?
Topher
Chris - Topher,
I am not too familiar with Cocoa methods - although I hope to be
soon. Anyway I couldn't get the method syntax correct - so I'll have
to try later when I have a little more time.
I just feel like I am missing something - assigning a unique ID to a
menu item seems like it is an essential requirement of a GUI. I mean
I am just surpirsed that after hours of Googling I haven't run across
anyone else who is trying to do this – it just has to be something I
am missing - even simple HTML pop up menus have name/value
properties. It just seems like I am making this too hard.
I'll post if/when i find a more elegant solution - in the mean time
if anyone knows the answer, please enlighten me by posting.