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




On Jul 6, 2005, at 10:54 AM, Christopher Hickman wrote:

Perhaps what you want is "tag" (if your id is always an integer) or
"associated item" (if it might be something else).

Here is the reference for menu item from the Terminology Reference:
<http://developer.apple.com/documentation/AppleScript/Reference/ StudioRefere
nce/sr9_menu_suite/chapter_9_section_5.html>


Topher

Christopher,

Thanks so much for your help - I tried the tag property and assumed I set it the same way I set the name but when I call it is set to its default of 0 (zero). I am setting the title and tag properties like so...

set the_menu_item to make new menu item at the end of menu items of menu of the_popup with properties {title:the_vendor, tag: id_vendor}

I did try casting the "id_vendor" variable to an integer but that made no difference. When I call the title it is correct. But when I call the tag it is, as I said, 0. I am calling like so....

    set the_title to title of popup button "the_vendors" of win_main
    set the_id_vendor to tag of popup button "the_vendors" of win_main

Thanks again for any help.

Chris
_______________________________________________
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
References: 
 >RE: Popup Button Unique ID (From: "Christopher Hickman" <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.