zotero/zotero — pull request #172 by fbennett (2012-09-23 05:14:52+00:00)
Title: zotero://select: do not open tab, initialize Zotero pane if needed

Users express interest in using the zotero://select protocol to link from external note-taking tools with some regularity. A couple of sample threads:

http://forums.zotero.org/discussion/20040/using-zoteroselect-for-external-program-links/
http://forums.zotero.org/discussion/1919/outlining-in-zotero/

Two small glitches make this less attractive than it might be: each zotero://select call opens an empty tab in the browser; and the selection fails unless Zotero is opened at least once in a running Firefox before the call.

With this patch, zotero://select calls open a special dummy page that closes immediately after opening, and Zotero is initialised before the item selection so that the item will be selected even upon Firefox startup.