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

**URL:** <https://forums.creativeclouddeveloper.com/t/can-you-get-a-progress-bar-with-a-reportprogress-in-a-psjs-script/11484>\
**Category:** Photoshop\
**Created:** [October 16, 2025, 4:53pm UTC](https://forums.creativeclouddeveloper.com/t/can-you-get-a-progress-bar-with-a-reportprogress-in-a-psjs-script/11484 "2025-10-16T16:53:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simo](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Simo](https://forums.creativeclouddeveloper.com/u/Simo)\
**Post date:** [October 16, 2025, 4:53pm UTC](https://forums.creativeclouddeveloper.com/t/can-you-get-a-progress-bar-with-a-reportprogress-in-a-psjs-script/11484/1 "2025-10-16T16:53:22Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [October 16, 2025, 7:18pm UTC](https://forums.creativeclouddeveloper.com/t/can-you-get-a-progress-bar-with-a-reportprogress-in-a-psjs-script/11484/2 "2025-10-16T19:18:19Z")

</div>

I believe you’re looking for a progress bar control

> **[ExecuteAsModal Details](https://developer.adobe.com/photoshop/uxp/2022/ps_reference/media/executeasmodal/#progress-bar)**

---

<div class="post-metadata">

**Author:** ![Simo](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Simo](https://forums.creativeclouddeveloper.com/u/Simo)\
**Post date:** [October 16, 2025, 7:48pm UTC](https://forums.creativeclouddeveloper.com/t/can-you-get-a-progress-bar-with-a-reportprogress-in-a-psjs-script/11484/3 "2025-10-16T19:48:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Simo](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Simo](https://forums.creativeclouddeveloper.com/u/Simo)\
**Post date:** [October 17, 2025, 1:15pm UTC](https://forums.creativeclouddeveloper.com/t/can-you-get-a-progress-bar-with-a-reportprogress-in-a-psjs-script/11484/4 "2025-10-17T13:15:40Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [October 17, 2025, 2:03pm UTC](https://forums.creativeclouddeveloper.com/t/can-you-get-a-progress-bar-with-a-reportprogress-in-a-psjs-script/11484/5 "2025-10-17T14:03:14Z")

</div>

IIRC, it can be nested a few levels deep
