Textexpander and iBooks

#1

If you are like me, and you are often copying from text in iBooks and pasting into another document for personal use, the quote feature of iBooks is a bit of a drag.

I created a javascript textexpander snippet that I use instead of traditional pasting that automatically strips out the opening and closing quotes and excerpt data. Again, I only use this for personal use, as I would always want quotes appropriately attributed. But, if you are like me, here’s my javascript for TE:

var result = TextExpander.pasteboardText;
result = result.replace(/“([\s\S]+)”[\r|\n|\r\n]{2,}.*/,"$1");
TextExpander.appendOutput(result);
3 Likes