index.ts
is a Google Apps Script for Gmail to save given attachments to Google Drive.
To get started with the development, install the following dependencies:
- Node 16 and npm 7
clasp
:npm install -g @google/clasp
Get familiar with clasp
.
- Login:
clasp login
- Push:
clasp push --watch
- Run:
clasp run
NOTE: Follow official instruction to set up your environment.
- Create a project on script.google.com, run:
clasp create {project_name}
- Compile and push the code to your project:
clasp push
- Modify as needed for your particular filtering rules.
- Set up a Trigger to run the script periodically.