# Does this command not work anymore?

**URL:** <https://forums.creativeclouddeveloper.com/t/does-this-command-not-work-anymore/7515>\
**Category:** UXP Plugin API\
**Tags:** bug, uxp, javascript\
**Created:** [February 9, 2024, 1:20am UTC](https://forums.creativeclouddeveloper.com/t/does-this-command-not-work-anymore/7515 "2024-02-09T01:20:54Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![dotproduct](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@dotproduct](https://forums.creativeclouddeveloper.com/u/dotproduct)\
**Post date:** [February 9, 2024, 10:00pm UTC](https://forums.creativeclouddeveloper.com/t/does-this-command-not-work-anymore/7515/13 "2024-02-09T22:00:48Z")

</div>

I don’t quite understand why you still use `getFileForSaving`. Again, that will bring up a dialog **always**. That is the way to ask a user to specify a file (and give permission to access it).

In your case you’re already getting a temp folder, via `getTemporaryFolder`. You have trivial access to that folder (so no pop-up will occur). Now it’s just a case of creating a file in that folder via `createFile` (as described [here](https://developer.adobe.com/photoshop/uxp/2022/uxp-api/reference-js/Modules/uxp/Persistent%20File%20Storage/Folder/#createfilename-options)) and pass that to `saveAs`.

P.S. There’s an almost identical thread in this forum from just a week ago. The person there wanted to save a .jpg. It sounds like you want to save a .png. Check [it out](http://forums.creativeclouddeveloper.com/t/how-to-circumvent-getfolder-for-doc-saveas-jpg/7417).

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/does-this-command-not-work-anymore/7515)._
