• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using AS to set MENU resource entries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using AS to set MENU resource entries


  • Subject: Re: Using AS to set MENU resource entries
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 30 Nov 2002 22:59:26 -0800

Did you try Smile, and the Satimage osax (which has powerful resource
commands too)? I've never attempted this sort of thing, but I believe that
Smile can do all that. It builds its own menus with AS, after all. And Smile
is free; you can distribute it with your script if need be.

--
Paul Berkowitz



> From: Gary Lists <email@hidden>
> Date: Sun, 01 Dec 2002 01:42:49 -0500
> To: AppleScript Users <email@hidden>
> Subject: Using AS to set MENU resource entries
>
> 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.
_______________________________________________
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.

  • Prev by Date: Re: AS link to MySQL?
  • Next by Date: Re: Applescript to export Quicktime movies
  • Previous by thread: chance to speak to a MUG about AppleScript
  • Index(es):
    • Date
    • Thread