Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9902

alternative menu file

From johanna kraxner <johanna.kraxner@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject alternative menu file
Date 2012-05-01 09:20 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jno9tg$51d$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hello,
I want to create an addon with an own entry in the menu bar. It would
be nice if the user could delete all (noticeable) changes of the addon
installation just by deleting the related folder from the Addons/
Application folder.
So what I would like to achieve is to have some kind of alternative
menu file. I thought of having an inti.m with something like:

If[FileExistsQ[FileNameJoin[{MyAddOnDirectory, "MenuSetup.tr"}]],
 SetOptions[$FrontEnd,
  MenuConfigurationFile ->
   FileNameJoin[{MyAddOnDirectory, "MenuSetup.tr"}]],
 (* standard menu file *)
 ]

I tried a bit with all the different init.m files but I did not really
get the hang of it and the results seemed a bit random to me
(sometimes it did not work at all, sometimes with error messages).
Any Suggestions?

Best Wishes

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

alternative menu file johanna kraxner <johanna.kraxner@gmail.com> - 2012-05-01 09:20 +0000

csiph-web