https://github.com/stephendolan/gas-drive-auto-bucket
Move top-level files into a designated folder.
https://github.com/stephendolan/gas-drive-auto-bucket
Last synced: about 1 year ago
JSON representation
Move top-level files into a designated folder.
- Host: GitHub
- URL: https://github.com/stephendolan/gas-drive-auto-bucket
- Owner: stephendolan
- Created: 2020-03-17T13:55:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-08T11:09:34.000Z (about 5 years ago)
- Last Synced: 2025-02-05T21:57:26.372Z (over 1 year ago)
- Language: TypeScript
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Summary
This Google Apps Script takes all top-level items that are not folders, and moves them into a designated folder. It's useful for:
- Gmail attachments that use Drive as a backer
- Google Calendar attachments that use Drive as a backer
# Setting up this script on your Google account
1. [Install the CLASP command line tool](https://github.com/google/clasp/#install)
1. Run `clasp login` to get your Google credentials set up
1. Create the project from `clasp` in your [Google Scripts](script.google.com).
1. Update the "toFolderId" constant to contain the ID of the folder to move things to.
1. Set up an [Apps Script schedule](https://developers.google.com/apps-script/guides/triggers/installable#time-driven_triggers)