Sg2.9
save params
Recent RSS
save params
From:  Daniel
Date:  24. July 2006, 16:53

Hi, I think it would be cool if the parameters of the Dialog could be saved every time a script is executed. Or is it possible to code it from the script ?

Re: save params
From:  Jürg Lehni
Date:  24. July 2006, 18:16

It's a very good idea for integration in a later version.
Until then, I propose using the java.util.prefs Package:

// create prefs nodes as subnodes of the
// ScriptographerEngine class:
var prefs = java.util.prefs.Preferences.userNodeForPackage(
    Packages.com.scriptographer.ScriptographerEngine
).node(scriptFile.name);

// now values can be stored and retrieved easily:
// 10 is the default if nothing is defined
var value = prefs.get("valueName", 10);
...
// store the changed values in the prefs again:
prefs.put("valueName", value);
Re: save params
From:  Daniel Berio
Date:  24. July 2006, 18:28

thanx!

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Grid Generator 04.01.12