I am just starting of my journey into Photoshop new API and UXP
I have a current script in extendscript that i am translating to UXP. However i can’t work out how to delete files from local storage could someone help me translate this piece of my code
var f = new File(sDoc.path + "/" + sDoc.name);
var m = new File(mDoc.path + "/" + mDoc.name);
var fSize = Math.round(100*f.length/1024)/100000;
m.remove();
f.remove();
Welcome to the Adobe Creative Cloud Developer Forums! If you mean accessing files that are stored locally, here are the related UXP API references for file access. This document recommends storage options for UXP development.
My script is to combine to prexisting PSD files and discard one of them, so the automation and access to the filesystem was super useful in extendscript, but i understand its a sandboxing requirement, ill have a go with this new file picker option,