Photoshop UXP Plugin - Open Local File
Hello,
My wife is an artist and I'm making a custom/private plugin (not for distribution) to queue up files for printing based on her online orders.
I have everything working: enter an order number - the order details are loaded and displayed in my plugin. Along with each order item, I have a string such as "D:/Pictures/Alley/ghost-western.jpg" that corresponds with an art print a customer ordered. How do I instruct photoshop to open "D:/Pictures/Alley/ghost-western.jpg" without having my wife manually navigate to the file?
Do I do something like this?
(note: this code doesnt work in my plugin)
const fs = await require('uxp').storage.localFileSystem;
const file = await fs.getEntryWithUrl("file://D:/Pictures/Alley/ghost-western.jpg");
const app = require("photoshop").app;
app.open(file);
