问题
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