# How to know which batchPlay actions require executeAsModal? Is there any downside to executing ALL as modal?

**URL:** <https://forums.creativeclouddeveloper.com/t/how-to-know-which-batchplay-actions-require-executeasmodal-is-there-any-downside-to-executing-all-as-modal/6687>\
**Category:** UXP Plugin API\
**Created:** [August 15, 2023, 7:08am UTC](https://forums.creativeclouddeveloper.com/t/how-to-know-which-batchplay-actions-require-executeasmodal-is-there-any-downside-to-executing-all-as-modal/6687 "2023-08-15T07:08:50Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![tomzag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/tomzag/32/2464_2.png) [@tomzag](https://forums.creativeclouddeveloper.com/u/tomzag)\
**Post date:** [September 4, 2023, 6:30am UTC](https://forums.creativeclouddeveloper.com/t/how-to-know-which-batchplay-actions-require-executeasmodal-is-there-any-downside-to-executing-all-as-modal/6687/8 "2023-09-04T06:30:50Z")

</div>

> If an operation flat-out **required** executeAsModal, I assume Photoshop would throw an error of some kind that would say: “Needs to be run via executeAsModal”? Is that correct?

Yes, for situations where `executeIsModal` is required the code will not work and you will get a warning in the console.

I would like to mention that it is useful to wrap code with `executeAsModal` **if it is work intensive.** This can ensure that the steps are executed faster and no other plugin or Photoshop can “interfere”. Here [an example](http://forums.creativeclouddeveloper.com/t/please-help-me-debugging-loading-time-of-actions/6207/22) where `executeAsModal` helped me to run the operation faster even if it wasn’t required.

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/how-to-know-which-batchplay-actions-require-executeasmodal-is-there-any-downside-to-executing-all-as-modal/6687)._
