• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to erase CustomOptions id?

Engaged ,
Jun 01, 2015 Jun 01, 2015

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.

TOPICS
Actions and scripting

Views

360

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jun 01, 2015 Jun 01, 2015

app.eraseCustomOptions('DIGS_Slides');

Votes

Translate

Translate
Adobe
Enthusiast ,
Jun 01, 2015 Jun 01, 2015

Copy link to clipboard

Copied

app.eraseCustomOptions('DIGS_Slides');

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 01, 2015 Jun 01, 2015

Copy link to clipboard

Copied

LATEST

Thanks. I missed that one in the docs.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines