Skip to main content
Participant
October 29, 2024
Question

JAVAscript: No such element error

  • October 29, 2024
  • 1 reply
  • 134 views

Hi There!

 

I've created a script to create Instagram images in Photoshop. It worked flawlessly until I upgraded to PS 2025.

//try and load previous settings
var exportSettings;

try {
    exportSettings = app.getCustomOptions(settingsID);
} catch (e) {
    alert(e + ' Erro linha: ' + e.line);
    saveSettings();
}

if(typeof exportSettings == "undefined") {
    saveSettings();
}
//try and load previous settings
var exportSettings;

try {
    exportSettings = app.getCustomOptions(settingsID);
} catch (e) {
    alert(e + ' Erro linha: ' + e.line);
    saveSettings();
}

if(typeof exportSettings == "undefined") {
    saveSettings();
}

I get the "No such element." error when calling app.getCustomOtions(savesettings). Any help would be very appreciated

This topic has been closed for replies.

1 reply

Inspiring
November 6, 2024

What have you got settingsID set to?