Remember The Milk script to estimate selected tasks

1 · Evan Hahn · Feb. 24, 2024, midnight
This post is aimed at fellow Remember The Milk users. I often want to select a group of tasks in Remember The Milk and see their total estimate. For example, how much work do I have to do before I leave on my trip? I wrote a simple MilkScript to accomplish this: function main() { const tasks = rtm.getSelectedTasks(); if (!tasks.length) { return rtm.newMessage( "No tasks selected", "Select 1 or more tasks to estimate." ); } let totalMinutes = 0; for (const task of t...