How to programmatically create a list of Google Apps Script projects owned by me?

你说的曾经没有我的故事 提交于 2020-01-11 07:47:09

问题


Google Apps Scripts projects could be standalone, bounded to Google apps (Docs, Sheets), Web Apps or Google Sites gadgets. How could I find all the projects owned by me from a single point?

The Class File, Class Document, Class Spreadsheet, Class Slide and Class Sites from Apps Script doesn't include a method to know if the corresponding container has a Script project bounded to them.

Only standalone Script projects are shown in Google Drive.

Update:

Nowadays (2018) it's possible to find all the Apps Script projects, bounded and standalone, owned by oneself on https://script.google.com and it's possible to access these projects programmatically through Apps Script API but I don't know how to use it to create a list of projects owned by me.

clasp has the command clasp list but it list only the 10 most recent projects.

Reference

  • The Apps Script Dashboard

Related Q&A

  • I have scripts in one of spreadsheet document and cannot locate the script
  • No scripts found

回答1:


There is not good way to find all script OWNED by you because as you pointed out searching drive will only return standalone scripts. You can find all scripts Authorized by you though and revoke permissions on them.

Under Drive settings: Manage Apps.

or

Also under you google Account Settings->Account permissions https://security.google.com/settings/security/permissions?pli=1



来源:https://stackoverflow.com/questions/29613469/how-to-programmatically-create-a-list-of-google-apps-script-projects-owned-by-me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!