Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Popup Button Unique ID



Chris

Okay - I went ahead and added the call method as you wrote and it does seem the syntax is correct, but it does throw an error although i don't think it is the call to the method that is wrong but that somehow the ID of the item is trying to apply the new tag to is always one digit higher than the ID of "the_menu_item" - here is the error...

Can't get «class menI» id 330 of item id 329. (-1728)

As for the "referenced object" do you mean "associated object"? I did try that but didn't get as far as I did with the "tag". I will keep trying on both.

Thanks again

Chris



On Jul 7, 2005, at 10:43 AM, Christopher Hickman wrote:

Chris,

Have you tried my other suggestion of using the "represented object"
property instead of "tag" for the id?

And what did you mean you couldn't get the method syntax right? It should
be just as I wrote:


call method "setTag:" of the_menu_item with parameter 12345

Where the_menu_item is your menu item and the 12345 is the integer you want
for the tag.


Topher



_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.