When you copy something from an iBooks book, the text copied and quoted, i.e., the result is"text copied" and an annotation about the source.
A fix with AppleScript and Automator is posted here..
How can I do this in KM? I’d like to say have Cmd-option-C copy the text and put just the selected text on the clipboard.
This is the AppleScript:
# strip out iBooks citation
sed -E -e 's/^[ ]?[0-9]* //g' | sed -E -e 's/“[ ]?[0-9]?[ ]?//g' | sed -E -e 's/”$//g' | sed -E -e 's/^(Excerpt From).*//g'
I tried KM Copy, Execute AS; but then couldn’t return output to clipboard (or maybe the script isn’t really running.
Thanks for any help. The link also has a Ruby script.