On Tuesday 06 Dec 2011 23:26:46 you wrote:
> Hi all,
>
> when distributing macros to others, it can happen that they do not behave
> well due to different settings in Edit>Options... For example, to avoid
> inverting LUT for new images, I would have to call explicitely:
> run("Appearance...", arg);
> where "arg" omits the "use" keyword (from "use inverting LUT"). But the
> argument at the same time may change other values in the group. So my
> questions are:
> a) Can I selectively change an individual parameter in a group?
> b) Is there something like "Revert to Factory Settings".
Hi Norbert,
You can use at the start of your macro:
saveSettings(): Saves most Edit>Options submenu settings so they can be
restored later by calling restoreSettings.
This saves the current status, then set your own options and at the end of a
macro call:
restoreSettings: Restores Edit>Options submenu settings saved by the
saveSettings function.
However, what I find easier in practice is this: I set all my options in the
StartupMacros.txt file (so every time I start IJ is set the way I prefer) and
I distribute that file as well. That way I know that the other computer
behaves the same way as mine and this does not depend on some option settings
of certain macros that might not restore the original state.
Cheers
Gabriel