Calendar - list of events

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
Post Reply
agabb
Posts: 6
Joined: May 5th, 2017, 9:31 pm

Calendar - list of events

Post by agabb »

This applies to Thunderbird/Calendar.

Is there any way to get a simple list of future events (just event & date) into the clipboard for pasting into Word? The format used for the "All Future Events" pane is OK.

Andrew
morat
Posts: 6427
Joined: February 3rd, 2009, 6:29 pm

Re: Calendar - list of events

Post by morat »

I can copy the text in the title, start and end columns using the error console, then paste the text into another application.

* select "All Future Events" in drop down list in calendar tab
* open error console i.e. tools > developer tools > error console
* copy and paste code into error console (press enter to run)

Code: Select all

(function () {
  var tree = document.getElementById("unifinder-search-results-tree");
  var view = tree.view; // nsITreeView
  var columns = tree.columns; // nsITreeColumns
  for (var i = 0; i < view.rowCount; i++) {
    var title = view.getCellText(i, columns.getColumnAt(0));
    var start = view.getCellText(i, columns.getColumnAt(1));
    var end   = view.getCellText(i, columns.getColumnAt(2));
    console.log(title + ";" + start + ";" + end);
  }
})();
Error Console command line
http://developer.mozilla.org/en-US/docs ... mmand_line

Reference
http://developer.mozilla.org/en/XUL/tree
http://developer.mozilla.org/en/XPCOM_I ... sITreeView
http://developer.mozilla.org/en/XPCOM_I ... reeColumns
Post Reply