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


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

alternative menu file

Started byjohanna kraxner <johanna.kraxner@gmail.com>
First post2012-05-01 09:20 +0000
Last post2012-05-01 09:20 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

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

#9902 — alternative menu file

Fromjohanna kraxner <johanna.kraxner@gmail.com>
Date2012-05-01 09:20 +0000
Subjectalternative menu file
Message-ID<jno9tg$51d$1@smc.vnet.net>
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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web