odeke-em / drive

Google Drive client for the commandline
Apache License 2.0
6.67k stars 425 forks source link

Pull (or even push) support of "standalone Google Apps Script" files #857

Open peter-lyons-kehl opened 7 years ago

peter-lyons-kehl commented 7 years ago

Hi Emmanuel,

would it be possible to support "standalone Google Apps Script" files from Google drive, please? Those are server-side javascripts created and run at https://script.google.com.

They show up at https://drive.google.com/drive/u/0/search?q=type:script.

To complicate,

  1. Google provides almost no API access to the source of those scripts.
  2. each such script ("project") contains of one or more scripts with extension ".gs" (as listed at https://script.google.com).
  3. Those ".gs" scripts don't show up as separate files via Google API. Only the parent ("project") shows up.
  4. Since those scripts don't count towards user's size quota, the parent shows up with size 0.

See also http://stackoverflow.com/questions/18445863/how-to-download-google-apps-script https://developers.google.com/apps-script/import-export#export_projects_from_drive

odeke-em commented 7 years ago

Hello again @peter-kehl, thank you for the issue.

So this is interesting, I've never setup nor have I used ".gs" scripts before.

I'll take a read at the reference documents, anyone else please feel free to join in. Thank you for the references @peter-kehl!