Created
November 8, 2013 20:59
-
-
Save jkishner/7377621 to your computer and use it in GitHub Desktop.
Add this script to your menubar.opml outline in Fargo.io. To use, type your reminder in a headline in Fargo. Leave cursor on that headline, choose the script "Remind me." Enter the time in military time (e.g. 15:20 is 3:20pm). This script only works for a reminder on the same day, and only one reminder at a time. It will also only work in one se…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remind me | |
dialog.ask("When do you want to be reminded?","","use military time e.g. 15:20", function (time) { | |
reminder = op.getLineText(); | |
dialog.alert("You have asked to be reminded to " + reminder + " at " + time + " today"); | |
var myVar=setInterval(function(){myTimer()},60000); | |
function myTimer() { | |
var now = clock.now().toString(); | |
var date = clock.now().toDateString(); | |
var due = date + " " + time + ":00 GMT-0500 (EST)"; | |
if (now > due) { dialog.alert (reminder); clearInterval(myVar); } | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment