# Execute a script via a button

**URL:** <https://forums.creativeclouddeveloper.com/t/execute-a-script-via-a-button/3699>\
**Category:** UXP Plugin API\
**Created:** [October 4, 2021, 4:26pm UTC](https://forums.creativeclouddeveloper.com/t/execute-a-script-via-a-button/3699 "2021-10-04T16:26:35Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![ddbell](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ddbell/32/1030_2.png) [@ddbell](https://forums.creativeclouddeveloper.com/u/ddbell)\
**Post date:** [October 22, 2021, 8:40pm UTC](https://forums.creativeclouddeveloper.com/t/execute-a-script-via-a-button/3699/8 "2021-10-22T20:40:55Z")

</div>

What is the exact error?

I must have missed the closing bracket when I copied it from my plusing. I updated the post. It is the exact function I use for multiple plugins and I’ve never had it give an error.

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/execute-a-script-via-a-button/3699)._
