How to save JPG without opening dialog in UXP

Hi, im trying to save image to the same folder from which the PSD is loaded without opening any dialog for selecting the required folder using the new saveAs method in UXP, ie without any user interaction. Thanks in advance!

If the folder is not a supported domain, or covered by a previous session/persistent token then you’re going to need to generate a new token (which requires user input).

https://www.adobe.io/photoshop/uxp/2022/uxp/reference-js/Modules/uxp/Persistent%20File%20Storage/domains/

https://www.adobe.io/photoshop/uxp/2022/uxp/reference-js/Modules/uxp/Persistent%20File%20Storage/FileSystemProvider/

1 Like