Looking for answers I stumbled upon a post from 2 and 3 years ago, that I want to share here, it is still not solving the issue, but I believe this topic is still hot, so collecting some posts while searching, may help others too.
Now it works on both macOS/Windows. Discard the previous code because the initial value of getWarnRunningScripts was incorrect.
const photoshop = require('photoshop') ;
const { app, core } = photoshop ;
const fs = require('fs') ;
const { localFileSystem } = require('uxp').storage ;
const { entrypoints } = require('uxp') ;
const os = require('os') ;
const homePath = os.homedir() ;
/**
* Returns path to PSUserConfig.txt
* @return {string}
*/
const getPSUserConfigPath = () => {
const psVer…
Do you mean to play an action, or run a JSX script? Yes, either can be done.
I have a UXP plugin that plays actions and there have been no issues at all with that.
You can also play JSX extendscript through UXP. I don’t use this in my plugins but I did do some testing. It works fine but for some reason runs at about 1/2 the speed that my JSX extendscripts run when ran natively, not through UXP.
Here is the documentation for playing actions.
https://www.adobe.io/photoshop/uxp/ps_reference/c…