Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi! I would like to extend my mostly cross-platform script so that it will add new menu entries (or even folders) to "Programs" (or how it's called in English version of MacOSX) menu on MacOSX. How it can achieve? I guess it's creating directories and files in some directory?
  • Comment on How script can add new entries to "Programs" menu on MacOSX?

Replies are listed 'Best First'.
Re: How script can add new entries to "Programs" menu on MacOSX?
by waswas-fng (Curate) on Apr 23, 2004 at 16:41 UTC
    You need to go verbose on your request -- it is way to ambiguous. If you are asking where native GUI applications are stored on Mac OS X, you are looking for the directory: /Applications via shell. This really has nothing to do with perl, maybe a mac site like www.macosxhints.com's forums would be a more appropriate venue for this question.


    -Waswas
Re: How script can add new entries to "Programs" menu on MacOSX?
by flyingmoose (Priest) on Apr 23, 2004 at 13:38 UTC
    apt-get menu update-menus

    whoops...no...that's Debian :)

    edit: <XP burn> what, downvotes! you fools! apt-get has super-cow powers! it says so! you will pay for this treachery against the super cow! no chocolate milk for you! </XP burn>

      Actually if you install Fink you'll get apt-get . . .

      Then again I don't know of a "Programs" menu on OS X. Maybe he wants to make a perl script into an executable? (See here to download). The original question's a bit vague.

        I want to pose the same question, only also for Windows, KDE and GNOME. But let me put it in context. When on Windows I click Start->All Programs and then put my mouse cursor over "Games", I can then see the different games I have installed. Each company that wrote the games I see had to come up with code such that, once installed, their game would show up there. That is my end goal. I want the user to be able to find the program I am writing by navigating under the Start menu. Does perl have any facilities to ease this? Can you think of any keywords I can search for? Things like "Add Program to Windows Start Menu" are coming up with "by hand" methods, not script methods. Thanks