I want to change the preferences via a script - Third part data(Excel open method( open all sheets)) and restore as it was before the change after my add-in - Thanks, Hans - JMP 17
rememberPrefs=getpreferences(); // capture all the prefs for restore later show(getpreference(backgroundcolor)); // probably white. you could also do this to remember just one. preference(backgroundcolor("orange")); // change something show(getpreference(backgroundcolor)); // arghh! it is orange! eval(rememberPrefs); // all better now
Not sure what exactly you are looking for, but there was an Add-In that could save multiple preferences and switch between them. Not sure whether it works with 17.
https://community.jmp.com/t5/JMP-Add-Ins/Preferences-Manager-with-import-export/ta-p/85117
Thanks Craig. The startement 'getpreferences()' is the secret. Hans
Thanks statman - I downloaded the Preference Manager description. Looks interesting. Craigs getprefences() statement did solve my problem - Hans