Seemed simple but it’s giving me trouble,
I would like to know where I’m wrong
my intention is this
if a selection is present it does one thing
if it is not present, it makes another one
this is what i have
try{
const app = require("photoshop").app;
if (app.activeDocument.selection.bounds) {
showAlert("test 1.");
return;
}else {
showAlert("test 2.");
}
}
catch(err) {
}