Templates for Reminders?

User Help for Mozilla Thunderbird
Post Reply
jmadero
Posts: 9
Joined: May 11th, 2013, 8:11 am

Templates for Reminders?

Post by jmadero »

Is there any way for me to create a template for the reminders I want for calendar/tasks?

Example: I use Calendar for work, for every single item I want 4 reminders (I want a 1 week notice, a 1 day notice, a 2 hour notice, and a 30 minute notice). I can do this manually but it's horribly time consuming when my calendar is constantly changing and I have literally hundreds of entries.

If this doesn't already exist, where might I go to suggest it? I know that the TB team is putting work into calendars for next major release, I think it could be a great addition.
User avatar
WaltS48
Posts: 5141
Joined: May 7th, 2010, 9:38 am
Location: Pennsylvania, USA

Re: Templates for Reminders?

Post by WaltS48 »

So, you create four of the same event each with a different reminder.

Then you get a reminder a week before, dismiss it instead of snoozing it, repeat after each reminder?

I would just create it once, snooze it and reset the reminder.

I did not find anything here.
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
jmadero
Posts: 9
Joined: May 11th, 2013, 8:11 am

Re: Templates for Reminders?

Post by jmadero »

Thanks for the reply. Currently I can do multiple reminders on one event which I think is easier than snoozing or making multiple events but templates seem to make sense. Maybe even templates tied to tags - for personal things I generally only need like 1 or 2 reminders max (like a doctor appointment) for work stuff I need a lot more as my career requires a lot of planning and managing calendars.

I'll suggest. Knowing that it'll likely never be implemented, still worth documenting the thought.

Thanks again!
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Templates for Reminders?

Post by morat »

jmadero wrote:a 1 week notice, a 1 day notice, a 2 hour notice, and a 30 minute notice
I would create a button in the Set up Reminders window using the userChromeJS addon. The 4 notices would be added when the button is clicked.

Unfortunately, the userChromeJS addon doesn't support the Set up Reminders window, but you can add support by editing the manifest.json and experiments.js files in the .xpi file.

* manifest.json

Code: Select all

- "version": "0.0.10",
+ "version": "0.0.10.1",
* experiments.js

Code: Select all

+ urls.push("chrome://calendar/content/calendar-event-dialog-reminder.xul");
+ urls.push("chrome://calendar/content/calendar-event-dialog-reminder.xhtml");
  // Adds a listener to detect new windows.
* <profile folder>\chrome\userChrome.js

Code: Select all

/* Thunderbird userChrome.js */

(function () {
  if (location == "chrome://calendar/content/calendar-event-dialog-reminder.xul" ||
      location == "chrome://calendar/content/calendar-event-dialog-reminder.xhtml") {
    try {
      window.onCustomReminder = function () {
        var button = document.getElementById("reminder-new-button");
        var length = document.getElementById("reminder-length");
        var unit = document.getElementById("reminder-unit");
        button.click(); length.value =  "7"; unit.value =    "days"; unit.click();
        button.click(); length.value =  "1"; unit.value =    "days"; unit.click();
        button.click(); length.value =  "2"; unit.value =   "hours"; unit.click();
        button.click(); length.value = "30"; unit.value = "minutes"; unit.click();
      };
      var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
      var button = document.createElementNS(XUL_NS, "button");
      button.setAttribute("label", "Custom");
      button.setAttribute("accesskey", "C");
      button.setAttribute("oncommand", "onCustomReminder()");
      var hbox = document.getElementById("reminder-action-buttons-box");
      hbox.insertBefore(button, hbox.firstChild);
    } catch (e) {
      Components.utils.reportError(e);
    }
  }
})();
Instructions:

* download userchromejs-0.0.10-tb.xpi file from addons.thunderbird.net
* edit manifest.json and experiments.js files in userchromejs-0.0.10-tb.xpi file
* install userChromeJS addon using userchromejs-0.0.10.1-tb-hacked.xpi
* close email client
* create userChrome.js file in chrome folder in profile folder
* open email client

Reference
http://searchfox.org/comm-esr78/search? ... g-reminder
Post Reply