Using AS to set MENU resource entries
Using AS to set MENU resource entries
- Subject: Using AS to set MENU resource entries
- From: Gary Lists <email@hidden>
- Date: Sun, 01 Dec 2002 01:42:49 -0500
Hey all.
I wrote recently (and got some great assists) regarding setting the STR#
resource indices via AS. That is all working swimmingly now.
My difficulty now is that the MENU resource doesn't have numbered indices
(that I know). I have tried using the actual count of the menu item, from
top to bottom, like an index value (tried starting at 0 and starting at 1)
but that's not cutting it.
I've also tried reading the resource as a whole, using Tanaka's. That does
return a value, and I can coerce it to text, but it's delimited by a variety
of gremlins. Not usable. (I thought I could just read the whole resource,
replace list items with user entries via AS and then re-write the whole
deal. No go.)
I want to take user input from an ask dialog, and then insert that as the
menu text.
As you know, the MENU/mctb resources open in ResEdit as a picture of the
menu, with each item able to be changed by editing its name in a text box on
the right side of the resource template.
I have searched the web and found plenty of mac programming references to
setting MENU strings, but it's all low-level C stuff, which is not what I
need.
I know this is stretching the list topic a bit, but if you have any clue as
to how to get my AS user-supplied menu item string into the MENU/mctb
resource, that'd be great.
So as not to irritate those who feel this is a bit "off topic", please reply
directly if you wish, to "email@hidden", but you must start your
subject with "notjunk:" so it doesn't get auto-deleted.
Thanks a 10^6.
Gary
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.