Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick Chong patrickxchong

View GitHub Profile
@patrickxchong
patrickxchong / sendSkimmToPocket.gs
Last active Aug 7, 2021
Google Apps Script to send an article to Pocket once a day (useful for news websites that update daily) @patrickxchong
View sendSkimmToPocket.gs
// Additional configuration required. In the script editor, go to Edit -> Current Project Triggers and set the following settings:
// Time Driven, Day Timer, 7-8am (or any other time of your preference)
function sendSkimmtoPocket() {
var today = new Date();
var date = Utilities.formatDate(today, "EST", "YYYY-MM-dd");
// Mail contents
var mailtitle = "Pocket "+ date;