Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Suggestion User based script preference profiles

Joined
Nov 3, 2013
Messages
609
Some of my older scripts would save a prefs file to disk and load it back up the next time the script was started. Can you provide a utility that let's us store script preferences for a user that will be tied to their account? This way there is less of a security risk letting scripters write to disk as well as a convenience to the user so when log in on different computers their default settings can be loaded up. This could be implemented through the onStart() arguments array that is already passed, or through a class that acts like hashmap allowing the scripter to store string keys and string values.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
There already is a getPreferences method in the AbstractScript class, or something along that line at least.
 
Joined
Nov 3, 2013
Messages
609
There already is a getPreferences method in the AbstractScript class, or something along that line at least.
But does that sync between clients on different hosts, or it is local file system based?
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
But does that sync between clients on different hosts, or it is local file system based?
It's based on the local file system, and although I like what you're saying right now isn't the time to implement it.
 
Top