Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Photoshop script csv file save location GoolgeDrive

Engaged ,
Jun 03, 2018 Jun 03, 2018

The Photoshop script creates a csv file and saves it to the desktop. The script fails when the file save path points to Google Drive.

Working:

newFile ('~/Desktop/projectData.csv')

Not working:

newFile ('/Users/FZ/Google\ Drive/projectData.csv')

Can Photoshop scripting handle saving a csv file to a remote server like Google Drive?

Are other options to automatically save the csv file to Google Drive? 

TOPICS
Actions and scripting
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
People's Champ ,
Jun 04, 2018 Jun 04, 2018

Don't escape the space here:

newFile ('/Users/FZ/Google Drive/projectData.csv')

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 04, 2018 Jun 04, 2018

Thank you for point that out. Still not able to create the file in the Google Drive with the this code.

Does Photoshop scripting allow creating a txt file in a remote server?

var csvFile = new File('/Users/FZ/Google\ Drive/projectData.csv');

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jun 04, 2018 Jun 04, 2018

What you are pointing to is a folder on your hard drive. Remote files on the Internet would have to be accesed using a Socket, then only if the sever allowed this sort of access.

P.S. you are stll escaping a space, you need to lose the \

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 04, 2018 Jun 04, 2018

I use a Photoshop script to format and process files. When the process is done the script writes to a cvs file. Info about the processed files. Trying to save the cvs file to Google Drive and link to a  Google spread sheet. The idea is that the Google spread sheet updates every time the Photoshop script runs.  Does Photoshop scripting allow socket protocols?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jun 04, 2018 Jun 04, 2018
LATEST

Photoshop does support sockets, but I wouldn't have an Idea how to implement it.

I thought that Google can sync from your PC if so you only have to save the file to a local folder.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jun 04, 2018 Jun 04, 2018

Also "newFile" should be "new File"

var csvFile = new File('/Users/FZ/Google Drive/projectData.csv');

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines