# Can i run javascript.jsx file using UXP button

**URL:** <https://forums.creativeclouddeveloper.com/t/can-i-run-javascript-jsx-file-using-uxp-button/3006>\
**Category:** UXP Plugin API\
**Tags:** javascript\
**Created:** [May 31, 2021, 11:16am UTC](https://forums.creativeclouddeveloper.com/t/can-i-run-javascript-jsx-file-using-uxp-button/3006 "2021-05-31T11:16:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [June 1, 2021, 1:25pm UTC](https://forums.creativeclouddeveloper.com/t/can-i-run-javascript-jsx-file-using-uxp-button/3006/3 "2021-06-01T13:25:10Z")

</div>

🔴 **Do not do this** if you plan on distributing your plugin to others. There is no guarantee that plugins that run JSX like this will continue to work in the future, and your plugin may be removed from the marketplace.

Convert to `batchPlay` and the PS DOM API instead.

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/can-i-run-javascript-jsx-file-using-uxp-button/3006)._
