Hi everyone,
I’m trying to trigger an existing .jsx
script automatically from within a UXP plugin in Photoshop. My goal is to let the user click a button and have Photoshop run an existing JSX script (e.g. “Mockup.jsx”) that lives in a known path (either inside the plugin folder or in Google Drive Desktop).
I’ve tried the following:
shell.openExternal("file://...")
→ returnsURI scheme "file" is not accepted
shell.openPath(jsxFile.nativePath)
→ returnsExtension ".jsx" is not accepted
- Using
batchPlay
with_obj: "open"
and the path to.jsx
→ also blocked due to extension
I understand that UXP is sandboxed for security, but is there any supported method to trigger a .jsx
file (even via bridge or a secure context)?
My setup:
- Photoshop 25.0+
- macOS
- JSX file is valid and works manually via
File > Scripts > Browse
Thanks in advance! Any workaround or insight would be appreciated