Best way to save user prefs in UXP plugin for Photoshop?
I'm writing a UXP plugin for Photoshop and I'm trying to find the best way to save user preferences and allow them to create presets for the plugin via the available API. If I was writing a "normal" application the data would be saved to a local database or flat file...but I don't see anything exposed in the API to allow for this.
Honestly, the documentation on this API set is HORRIBLY confusing and incomplete: some stuff is supported, other stuff isn't...but there's a workaround, and everything else I have no freaking clue and it's a matter of trying different stuff until I get it working. Some interfaces are documented that they exist, but not what the property/accessor is actually called in the API. I mean, writing these plugins shouldn't be this much guesswork.
<rantConcluded/>
I'm starting to see the light at the end of the tunnel with this plugin but I'm still not sure how to give users the ability to save their preferences and create presets with the settings in my control so they can work faster in the future. Is there a good way of doing this? Maybe some documentation somewhere that I haven't stumbled upon yet? My preference would be to save/load a JSON document to the user's drive, if that's supported.
Many thanks in advance! This platform look like it is going to be SUPER cool...one day, when it's finally finished and all growed-up!
