/gas-drive-auto-bucket

Move top-level files into a designated folder.

Primary LanguageTypeScript

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
  2. Run clasp login to get your Google credentials set up
  3. Create the project from clasp in your Google Scripts.
  4. Update the "toFolderId" constant to contain the ID of the folder to move things to.
  5. Set up an Apps Script schedule