putCustomOptions no longer works in newer Photoshop version
the script we've been using is no longer works properly on the newer Photoshop version. I assume that it is the function below that is not working:
function savePrefs() {
var desc1 = new ActionDescriptor();
desc1.putString(0, Prefs.toSource());
app.putCustomOptions("ed0f5560-dfb3-11e0-9572-0800200c7a99", desc1, true);
}the function is to remember options chosen on the GUI for radio buttons, checkboxes and a dropdown list. for example below:
if (psCompatible == false) {
Prefs.autoCrop = false;
}
Prefs.labelList_array = labelList_array;
savePrefs();I couldn't remember exactly on which version the script starting to no longer remembers the options we choose as they keep coming back to default everytime we call the script. But on the Photoshop 25.3.1 the script still works fine.
I apologize in advance that I am not the one who created the script and I don't know how to write javascript. If anyone can help guide to fix this is greatly appreciated.
