System Call Access for UXP

First of all, super exciting to have a framework to facilitate this for people without in-depth C++ knowledge! Thank you @justin2taylor!!

Similar to @Jarda, I’m curious too if you have any experience with an async version? On my end I ended up implementing both a sync as well as async version, but ran into a few issues with the async version that might be somewhat inherent to the way Photoshop is scheduling its threads under the hood. To me it looked like while a sync version would run in the separate scripting thread, the async execution would be scheduled back on the main thread, not a child thread of the main thread and hence would be blocking. At least that was my observation. Then again, I didn’t spend a whole lot of time tinkering with it. I did also bring this up here.

P.S. In my version of execSync I ended up returning a tuple of status code and output, was wondering if there was a design decision to leave the exit status out?

1 Like