I'd like an ApplesScript that will let me increase or decrease the quote level of text that I've selected (like using ⌘' and ⌥⌘' in Mail).
Ideally it would take a block of text and wrap it to a certain width, and indent it with > characters prepended. It would be useful in Gmail and in MarsEdit when trying to make a pretty Markdown-formatted blockquote.
The idea would be if I had typed:
The quick brown fox jumped over the lazy dog.
I'd select it, invoke the script, and it would give me:
> The quick brown fox jumped
> over the lazy dog.
(Though I'd likely set the width to be wider.)
TextWrangler and BBEdit both have this feature, as well as Mail, but I'd like to be able to have it as a script so I can use it in any application.
I found a tip here
that seems to be what I'm talking about, but I can't seem to get it to work.