Question
uxp open file in photoshop mac not working
@Stephen
I created a button in the uxp panel that needs to open files from a folder,
to my surprise I am having a problem open file in photoshop mac does not work.
this is what came out of the action, copy javascript.
async function OpenFile() {
let result;
let psAction = require("photoshop").action;
let command = [
// Apri
{"descriptor": {"_obj":"open"}, "options": {"dialogOptions": "display"}}
];
result = await psAction.batchPlay(command, {});
}
async function open_file() {
await require("photoshop").core.executeAsModal(OpenFile, {"commandName": "Action Commands"});
}
await open_file();
