Can you get a progress bar with a reportProgress in a .psjs script?

Hi all,

I’ve got a photoshop standalone .psjs script I’ve made where a function takes quite a while to loop over the pixels. I get a progress bar, but nothing I can find in the docs to say you can control what is displayed, or show a progress report … do those methods only work when running the script from inside a uxp panel ?

I believe you’re looking for a progress bar control

thanks, but these are the docs I’ve already been looking at. I’ve seen it works fine if run from a panel via executeAsModal, but that fails if I call it from a standalone.psjs script

1 Like

On re-visiting that docs page I’ve got it to work, so thanks for your hint. I’ve got it to work by running the target function using executeAsModal() inside the .psjs script and have a smoothly updating progress bar now.

Only wondering if there’s any potential issues with using EAM inside an already modal script I’m not aware of ?

IIRC, it can be nested a few levels deep

1 Like