Skip to main content
Serg9
Known Participant
November 13, 2019

P: Jsx can't save document to path containing 'cloud-content'

  • November 13, 2019
  • 13 replies
  • 755 views

Adobe Photoshop version: 21.0.1 20191106.r.47 2019/11/06: 3152b481f18  x64
OS: Windows 10 64-бит
OS version: 10 or more 10.0.18362.329

sample jsx code

app.documents.add(100,100);
app.activeDocument.saveAs(new File( "C:\\cloud-content1\\asd.psd"));

The folder C:\cloud-content1\ exists and it's allowed to write in this folder.

Expected result: file saved to the specified path
Actual result: error, approximate translation of message is:
Can't save as "/cloud-countent1/asd.psd": file not found.

The same error occurs for many variations of the file path, such as C:\\cloud-content\\asd.psd", C:\\cloud-contentasdf\\asd.psd" and so on.


When saving manually from the Photoshop UI - works fine.

This topic has been closed for replies.

13 replies

Serg9
Serg9Author
Known Participant
November 13, 2019
No, it also will not work with path like C:\cloud-content\asd.psd with the same error. As I can see from my tests, any path which starts with <any drive letter>:\cloud-content<any suffix>\any\other\path.psd will cause the same error.

Wherein the paths where 'cloud-content' part is not on the top, e.g. C:\test\cloud-content\asd.psd work as expected.
Tom Ruark
Inspiring
November 13, 2019
Take out the "1" it should be "cloud-content"
Serg9
Serg9Author
Known Participant
November 13, 2019
Another strange result here. Change code as follows (just remove psd extension from the path)

app.documents.add(100,100);
app.activeDocument.saveAs(new File( "C:\\cloud-content1\\asd"));
then the file will be saved, but not in C:\cloud-content1 folder, but to the following path
C:\Users\User\Documents\Adobe\Деловые партнеры Photoshop Cloud\asd