How to refresh/update (main/jmp) menu on jmp startup?Hello everyone,
currently I'm working on an update function for my addins. I used the following guide as guidance:
https://community.jmp.com/t5/JMP-Scripts/How-to-write-self-updating-JMP-add-ins/ta-p/21932
Everything works perfectly - but currently I'm struggeling with the next step.
I was wondering if it's possible to dynamicly "toggle" the update button depending if a update is available or not.
I tried using the script start-up function found here:
https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/run-a-script-at-start-up.shtml
... to manipulate the addin.jmpcust file. However the menu seems to load before the script is executed - so you need to restart jmp again for seeing the changes.
So my question: Is there a way to refresh/update the main menu, or maybe a better possibility to achieve my goal?
Thanks in advance,
DG
ScriptingRe: How to refresh/update (main/jmp) menu on jmp startup?Not a direct answer to your question, but have you checked out great Add-In-Manager by @Justin_Chilton :
https://community.jmp.com/t5/JMP-Add-Ins/Add-In-Manager/ta-p/43736
(You could also take a peek to Add-In-Managers code to see how it handles updating the addins when run)
Re: How to refresh/update (main/jmp) menu on jmp startup?I developed a large system of Addins(when I was a worker bee, and not a senior golfer) that automatically kept the Addins updated. What I found was that copying the JSL etc. into the Addins directory was very fast, and that what I ended up doing, was setting up the Addins to always copy the JSL from the global repository into Addins directory, and then run the JSL. I did not have to ask the users to reinstall, and the users always had the latest code. It really simplified the administration.