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

Photoshop script csv file save location GoolgeDrive

Engaged ,
Jun 03, 2018 Jun 03, 2018

Copy link to clipboard

Copied

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

Views

1.4K

Translate

Translate

Report

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

Copy link to clipboard

Copied

Don't escape the space here:

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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');

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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 \

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Also "newFile" should be "new File"

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

Votes

Translate

Translate

Report

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