手動で行う場合は、434 行目でいくつかのウィンドウ引数も定義しているopenEventDialog関数を確認してください。
/**
* Opens the event dialog with the given item (task OR event)
*
* @param calendarItem The item to open the dialog with
* @param calendar The calendar to open the dialog with.
* @param mode The operation the dialog should do ("new", "modify")
* @param callback The callback to call when the dialog has completed.
* @param job (optional) The job object for the modification.
* @param initialDate (optional) The initial date for new task datepickers
*/
function openEventDialog(calendarItem, calendar, mode, callback, job, initialDate)
この関数は、Thunderbird のメイン ウィンドウの window オブジェクトで直接呼び出すことができます。これは、たとえば、最終的にこの関数を呼び出すスクリプト ブロックを持つウィンドウに XUL オーバーレイを追加することによって実行できます。