5 added 14 characters in body edited Feb 18 '12 at 6:57 Andy Ross 17.4k22 gold badges5252 silver badges8787 bronze badges This can be accomplished using LinkWriteLinkWrite. You can place the following code in init.minit.m. To add a color to the background colors submenu you can use... LinkWrite[$ParentLink, AddMenuCommands[ "BackgroundDialog", {Delimiter, Item["M&y Color", Background -> RGBColor[0.980, 0.941, 0.902]]}]]  To add a link to the AddOns documentation you can use... LinkWrite[$ParentLink, AddMenuCommands[ "AboutBoxDialog", {Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]}]]  EDIT: Controlling the placement with this method seems hard since there is no documentation on the topic. It seems that AddMenuCommandsAddMenuCommands takes a front end token as the first input and then attempts to find the first instance in MenuSetup.trMenuSetup.tr and replace immediately after that. I've spent about all the time I think its worth trying to figure out more and have come to the conclusion that if you want highly customized menus you will probably need to edit MenuSetup.trMenuSetup.tr directly. End EDIT: Now, if you want to actually edit MenuSetup.trMenuSetup.tr the following will accomplish the same as the above. You can accomplish part 1 by adding the following code after line 628 of MenuSetup.tr which is located under /WolframResearch/Mathematica/8.0/SystemFiles/FrontEnd/TextResources/Windows in my case. , Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]  Note that "&AddOns Documentation..." can contain any string beginning with "&" that you would like. The Delimiter is also optional. Part 2 can be accomplished by inserting the following after line 328. , Delimiter, MenuItem["Custom",Background ->RGBColor[.5,.5,.5]]  Obviously, you can set this color to whatever you want. I recommend saving a copy of MenuSetup.trMenuSetup.tr before doing this since you can break things by messing with it. This can be accomplished using LinkWrite. You can place the following code in init.m. To add a color to the background colors submenu you can use... LinkWrite[$ParentLink, AddMenuCommands[ "BackgroundDialog", {Delimiter, Item["M&y Color", Background -> RGBColor[0.980, 0.941, 0.902]]}]]  To add a link to the AddOns documentation you can use... LinkWrite[$ParentLink, AddMenuCommands[ "AboutBoxDialog", {Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]}]]  EDIT: Controlling the placement with this method seems hard since there is no documentation on the topic. It seems that AddMenuCommands takes a front end token as the first input and then attempts to find the first instance in MenuSetup.tr and replace immediately after that. I've spent about all the time I think its worth trying to figure out more and have come to the conclusion that if you want highly customized menus you will probably need to edit MenuSetup.tr directly. End EDIT: Now, if you want to actually edit MenuSetup.tr the following will accomplish the same as the above. You can accomplish part 1 by adding the following code after line 628 of MenuSetup.tr which is located under /WolframResearch/Mathematica/8.0/SystemFiles/FrontEnd/TextResources/Windows in my case. , Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]  Note that "&AddOns Documentation..." can contain any string beginning with "&" that you would like. The Delimiter is also optional. Part 2 can be accomplished by inserting the following after line 328. , Delimiter, MenuItem["Custom",Background ->RGBColor[.5,.5,.5]]  Obviously, you can set this color to whatever you want. I recommend saving a copy of MenuSetup.tr before doing this since you can break things by messing with it. This can be accomplished using LinkWrite. You can place the following code in init.m. To add a color to the background colors submenu you can use... LinkWrite[$ParentLink, AddMenuCommands[ "BackgroundDialog", {Delimiter, Item["M&y Color", Background -> RGBColor[0.980, 0.941, 0.902]]}]]  To add a link to the AddOns documentation you can use... LinkWrite[$ParentLink, AddMenuCommands[ "AboutBoxDialog", {Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]}]]  EDIT: Controlling the placement with this method seems hard since there is no documentation on the topic. It seems that AddMenuCommands takes a front end token as the first input and then attempts to find the first instance in MenuSetup.tr and replace immediately after that. I've spent about all the time I think its worth trying to figure out more and have come to the conclusion that if you want highly customized menus you will probably need to edit MenuSetup.tr directly. End EDIT: Now, if you want to actually edit MenuSetup.tr the following will accomplish the same as the above. You can accomplish part 1 by adding the following code after line 628 of MenuSetup.tr which is located under /WolframResearch/Mathematica/8.0/SystemFiles/FrontEnd/TextResources/Windows in my case. , Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]  Note that "&AddOns Documentation..." can contain any string beginning with "&" that you would like. The Delimiter is also optional. Part 2 can be accomplished by inserting the following after line 328. , Delimiter, MenuItem["Custom",Background ->RGBColor[.5,.5,.5]]  Obviously, you can set this color to whatever you want. I recommend saving a copy of MenuSetup.tr before doing this since you can break things by messing with it. 4 added 416 characters in body edited Jan 30 '12 at 6:26 Andy Ross 17.4k22 gold badges5252 silver badges8787 bronze badges This can be accomplished using LinkWrite. You can place the following code in init.m. To add a color to the background colors submenu you can use... LinkWrite[$ParentLink, AddMenuCommands[ "BackgroundDialog", {Delimiter, Item["M&y Color", Background -> RGBColor[0.980, 0.941, 0.902]]}]]  To add a link to the AddOns documentation you can use... LinkWrite[$ParentLink, AddMenuCommands[ "AboutBoxDialog", {Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]}]]  EDIT: Controlling the placement with this method seems hard since there is no documentation on the topic. It seems that AddMenuCommands takes a front end token as the first input and then attempts to find the first instance in MenuSetup.tr and replace immediately after that. I've spent about all the time I think its worth trying to figure out more and have come to the conclusion that if you want highly customized menus you will probably need to edit MenuSetup.tr directly. End EDIT: Now, if you want to actually edit MenuSetup.tr the following will accomplish the same as the above. You can accomplish part 1 by adding the following code after line 628 of MenuSetup.tr which is located under /WolframResearch/Mathematica/8.0/SystemFiles/FrontEnd/TextResources/Windows in my case. , Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]  Note that "&AddOns Documentation..." can contain any string beginning with "&" that you would like. The Delimiter is also optional. Part 2 can be accomplished by inserting the following after line 328. , Delimiter, MenuItem["Custom",Background ->RGBColor[.5,.5,.5]]  Obviously, you can set this color to whatever you want and could probably have it open a color setter if you took the time to code that up. I recommend saving a copy of MenuSetup.tr before doing this since you can break things by messing with it. This can be accomplished using LinkWrite. You can place the following code in init.m. To add a color to the background colors submenu you can use... LinkWrite[$ParentLink, AddMenuCommands[ "BackgroundDialog", {Delimiter, Item["M&y Color", Background -> RGBColor[0.980, 0.941, 0.902]]}]]  To add a link to the AddOns documentation you can use... LinkWrite[$ParentLink, AddMenuCommands[ "AboutBoxDialog", {Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]}]]  Now, if you want to actually edit MenuSetup.tr the following will accomplish the same as the above. You can accomplish part 1 by adding the following code after line 628 of MenuSetup.tr which is located under /WolframResearch/Mathematica/8.0/SystemFiles/FrontEnd/TextResources/Windows in my case. , Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]  Note that "&AddOns Documentation..." can contain any string beginning with "&" that you would like. The Delimiter is also optional. Part 2 can be accomplished by inserting the following after line 328. , Delimiter, MenuItem["Custom",Background ->RGBColor[.5,.5,.5]]  Obviously, you can set this color to whatever you want and could probably have it open a color setter if you took the time to code that up. I recommend saving a copy of MenuSetup.tr before doing this since you can break things by messing with it. This can be accomplished using LinkWrite. You can place the following code in init.m. To add a color to the background colors submenu you can use... LinkWrite[$ParentLink, AddMenuCommands[ "BackgroundDialog", {Delimiter, Item["M&y Color", Background -> RGBColor[0.980, 0.941, 0.902]]}]]  To add a link to the AddOns documentation you can use... LinkWrite[$ParentLink, AddMenuCommands[ "AboutBoxDialog", {Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]}]]  EDIT: Controlling the placement with this method seems hard since there is no documentation on the topic. It seems that AddMenuCommands takes a front end token as the first input and then attempts to find the first instance in MenuSetup.tr and replace immediately after that. I've spent about all the time I think its worth trying to figure out more and have come to the conclusion that if you want highly customized menus you will probably need to edit MenuSetup.tr directly. End EDIT: Now, if you want to actually edit MenuSetup.tr the following will accomplish the same as the above. You can accomplish part 1 by adding the following code after line 628 of MenuSetup.tr which is located under /WolframResearch/Mathematica/8.0/SystemFiles/FrontEnd/TextResources/Windows in my case. , Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]  Note that "&AddOns Documentation..." can contain any string beginning with "&" that you would like. The Delimiter is also optional. Part 2 can be accomplished by inserting the following after line 328. , Delimiter, MenuItem["Custom",Background ->RGBColor[.5,.5,.5]]  Obviously, you can set this color to whatever you want. I recommend saving a copy of MenuSetup.tr before doing this since you can break things by messing with it. 3 added 796 characters in body edited Jan 29 '12 at 3:50 Andy Ross 17.4k22 gold badges5252 silver badges8787 bronze badges This can be accomplished using LinkWrite. You can place the following code in init.m. To add a color to the background colors submenu you can use... LinkWrite[$ParentLink, AddMenuCommands[ "BackgroundDialog", {Delimiter, Item["M&y Color", Background -> RGBColor[0.980, 0.941, 0.902]]}]]  To add a link to the AddOns documentation you can use... LinkWrite[$ParentLink, AddMenuCommands[ "AboutBoxDialog", {Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]}]]  Now, if you want to actually edit MenuSetup.tr the following will accomplish the same as the above. You can accomplish part 1 by adding the following code after line 628 of MenuSetup.tr which is located under /WolframResearch/Mathematica/8.0/SystemFiles/FrontEnd/TextResources/Windows in my case. , Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]  Note that "&AddOns Documentation..." can contain any string beginning with "&" that you would like. The Delimiter is also optional. Part 2 can be accomplished by inserting the following after line 328. , Delimiter, MenuItem["Custom",Background ->RGBColor[.5,.5,.5]]  Obviously, you can set this color to whatever you want and could probably have it open a color setter if you took the time to code that up. I recommend saving a copy of MenuSetup.tr before doing this since you can break things by messing with it. You can accomplish part 1 by adding the following code after line 628 of MenuSetup.tr which is located under /WolframResearch/Mathematica/8.0/SystemFiles/FrontEnd/TextResources/Windows in my case. , Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]  Note that "&AddOns Documentation..." can contain any string beginning with "&" that you would like. The Delimiter is also optional. Part 2 can be accomplished by inserting the following after line 328. , Delimiter, MenuItem["Custom",Background ->RGBColor[.5,.5,.5]]  Obviously, you can set this color to whatever you want and could probably have it open a color setter if you took the time to code that up. I recommend saving a copy of MenuSetup.tr before doing this since you can break things by messing with it. This can be accomplished using LinkWrite. You can place the following code in init.m. To add a color to the background colors submenu you can use... LinkWrite[$ParentLink, AddMenuCommands[ "BackgroundDialog", {Delimiter, Item["M&y Color", Background -> RGBColor[0.980, 0.941, 0.902]]}]]  To add a link to the AddOns documentation you can use... LinkWrite[$ParentLink, AddMenuCommands[ "AboutBoxDialog", {Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]}]]  Now, if you want to actually edit MenuSetup.tr the following will accomplish the same as the above. You can accomplish part 1 by adding the following code after line 628 of MenuSetup.tr which is located under /WolframResearch/Mathematica/8.0/SystemFiles/FrontEnd/TextResources/Windows in my case. , Delimiter, MenuItem["&AddOns Documentation...", FrontEndExecute[{FrontEndNotebookOpen[ FrontEndFindFileOnPath["paclet:guide/InstalledAddOns", "PrivatePathsSystemResources"]]}]]  Note that "&AddOns Documentation..." can contain any string beginning with "&" that you would like. The Delimiter is also optional. Part 2 can be accomplished by inserting the following after line 328. , Delimiter, MenuItem["Custom",Background ->RGBColor[.5,.5,.5]]  Obviously, you can set this color to whatever you want and could probably have it open a color setter if you took the time to code that up. I recommend saving a copy of MenuSetup.tr before doing this since you can break things by messing with it. 2 added 140 characters in body edited Jan 29 '12 at 2:54 Andy Ross 17.4k22 gold badges5252 silver badges8787 bronze badges 1 answered Jan 29 '12 at 2:46 Andy Ross 17.4k22 gold badges5252 silver badges8787 bronze badges