This script will save Gmail attachments directly to Google Drive

Google Drive Gmail script - Amit Agarwal

Alright, Google Drive is here and you have 5GB of free storage to save and synchronized documents across Windows, Mac and Android devices, but you also want a seamless integration around all other Google products. While the service still in the early stages, you can at least add one more additional feature, thanks to Amit Agarwal now you can save Gmail attachments to your Google Drive account with a using custom script.

You can download the script from this article at Labnol.org; once installed it creates a new label in Gmail and in Drive, then automatically checks any email with the new label and when attachment is detected is send it to Drive.

To have this function in your account, you need to install the script. It is pretty simple just follow these steps:

  1. Assuming that you are logged in to your Google account, create a copy of this sheet in your Google Docs (now Google Drive).
  2. Open the sheet and you should see a new Gmail menu – click Initialize and grant the necessary permissions. This is your sheet (see source code) and you are not sharing your Google credentials or data with anyone else.
  3. Next go the Gmail menu again and select Run. Close the Google sheet and you are done.

Gmail to Drive script

Now, how awesome it is when you are viewing an attachment in your mobile device and knowing that the file is already sitting on all the devices that you configured the cloud-storage service without you having to do anything?

Tip: I noticed that the Gmail (Click here) button in the menu will not appear in some cases. If this happens to you, just wait for about 5 mins and refresh the spreadsheet.

Source Digital Inspiration via TheVerge