Mini Kabibi Habibi

Current Path : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/Generator-builtin/lib/jsx/
Upload File :
Current File : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/Generator-builtin/lib/jsx/setCustomOptions.jsx

/*global ActionDescriptor, app, params */

// setCustomOptions
// Required params:
//   - key: The id of the plugin for which to set persistent settings
//   - settings: A JSON string representing persistent settings for the plugin
// Optional param:
//   - persistent: Boolean that indicates whether the settings should persist across launches

var desc = new ActionDescriptor();

var settingsKey = app.stringIDToTypeID("settings");
desc.putString(settingsKey, params.settings);

app.putCustomOptions(params.key, desc, params.persistent);