# How to save a file

**URL:** <https://forums.creativeclouddeveloper.com/t/how-to-save-a-file/2678>\
**Category:** UXP Plugin API\
**Created:** [March 21, 2021, 12:10am UTC](https://forums.creativeclouddeveloper.com/t/how-to-save-a-file/2678 "2021-03-21T00:10:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [March 21, 2021, 6:44pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-save-a-file/2678/5 "2021-03-21T18:44:36Z")

</div>

What’s the return value from `result`? It’s possible `batchPlay` is returning you an error in `result` (`batchPlay` generally doesn’t `throw`).

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/how-to-save-a-file/2678)._
