Hi I keep getting “SyntaxError: Identifier ‘batchPlay’ has already been declared”
So I made a small test plugin to try to fine where it’s hiding
I uninstalled & re-install Photoshop & UXP Developer Tools
I still get the same results and can’t develop plugins
If someone can help, it would be greatly appreciated
const batchPlay = require("photoshop").action.batchPlay;
const app = require('photoshop').app;
const UXP = require("uxp");
const fs = require('fs');
const fs1 = require("uxp").storage.localFileSystem;
const exeModal = require('photoshop').core.executeAsModal;
function init () {
if(app.activeDocument==null){return;}
doc = app.activeDocument;
docPath = doc.path;
}
// ##############################################################################
const fn13 = async () => {
showAlert("Hello World");
}
document.getElementById("btn13").addEventListener("click", function () { fn13 ()});
init();
VM10 index.js:1 Uncaught SyntaxError: Identifier 'batchPlay' has already been declared
at e.exports.execScript (uxp://uxp-internal/domjs_scripts.js:2)
at l (uxp://uxp-internal/domjs_scripts.js:2)
at uxp://uxp-internal/domjs_scripts.js:2
at o._executeCallbacks (uxp://uxp-internal/domjs_scripts.js:2)
at o._executeIfReady (uxp://uxp-internal/domjs_scripts.js:2)
at Array.<anonymous> (uxp://uxp-internal/domjs_scripts.js:2)
at o._executeCallbacks (uxp://uxp-internal/domjs_scripts.js:2)
at o._executeIfReady (uxp://uxp-internal/domjs_scripts.js:2)
at Array.<anonymous> (uxp://uxp-internal/domjs_scripts.js:2)
at o._executeCallbacks (uxp://uxp-internal/domjs_scripts.js:2)