Skip to content

Instantly share code, notes, and snippets.

@jkishner
Created November 8, 2013 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkishner/7377621 to your computer and use it in GitHub Desktop.
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…
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