I’m struggling with an issue when I try to save the activeDocument to a temporary file.
Let’s say I’m with a PSD file opened in my photoshop, and this PSD is stored at the normal user file system (not a temporary folder), but I need to upload this actual document (PSD) to an API so I’m calling the activeDocument.save(tempFile)
to save this document to a tempFolder so I can upload this document without asking for user permissions.
This works as expected, I can do the upload, but I noticed that when I go to photoshop and click to reveal the active document in Explorer, then Photoshop shows that the active document is the file I previously saved when I did activeDocument.save(tempFile)
.
There is anyway I can avoid this behavior or there is another to accomplish my goal (upload the active document without user permission)? I think this can break the flow of a designer, because this temporary folder and its content will be deleted.