mozrepl
Zotero commandline, or, How I Learned to Stop Worrying and Love the MozRepl
- Got Zotero? Good.
- Install MozLab.
- Restart Firefox.
- Start MozRepl.
- Open a terminal.
- telnet localhost 4242
- Get the Zotero object:
var zotero = Components.classes["@zotero.org/Zotero;1"] .getService(Components.interfaces.nsISupports)
.wrappedJSObject;...but all on one line, no spaces before the dots. Sorry, my formatting plugin went b0nkr5.
- Surprise your friends, amuse your enemies, bore the big-Zotero-collectionists:
repl> for each (item in zotero.Items.getAll()) {
....> alert(item.getField("title"));
....> }
Pretty nifty, eh?
Recent comments
12 weeks 6 days ago
14 weeks 1 day ago
24 weeks 4 days ago
24 weeks 4 days ago
25 weeks 4 days ago
26 weeks 4 days ago
26 weeks 5 days ago
26 weeks 6 days ago
27 weeks 8 hours ago
30 weeks 1 day ago