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
1 week 6 days ago
2 weeks 23 hours ago
2 weeks 1 day ago
2 weeks 2 days ago
5 weeks 3 days ago
6 weeks 20 hours ago
6 weeks 1 day ago
10 weeks 2 days ago
10 weeks 2 days ago
10 weeks 2 days ago