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