Copy link to clipboard
Copied
I can erase CustomOptions values from the Photoshop registry using the following code.
function eraseValues() {
var idSettings = "DIGS_Slides";
var idPhotographersName = app.stringIDToTypeID( "photographersName" );
var idFolderName = app.stringIDToTypeID( "folderName" );
var desc = app.getCustomOptions(idSettings);
if (desc !== null) {
desc.erase(idPhotographersName);
desc.erase(idFolderName);
app.putCustomOptions( idSettings, desc, true );
alert("Settings cleared.");
}
}
How can I erase the id entry (DIGS_Slides in this case) from the registry to get the registry back to the state it was in before I stored any values? Thanks.
app.eraseCustomOptions('DIGS_Slides');
Copy link to clipboard
Copied
app.eraseCustomOptions('DIGS_Slides');
Copy link to clipboard
Copied
Thanks. I missed that one in the docs.