At 09:55 -0700 11/08/2011, Watts Martin wrote:

What I want to do is make it behave like the Paste command: either insert the new Markdown text at the insertion point, or replace the selected text if there's a selection. But so far I've had no luck in figuring out how to do this

...set myText to do shell script "textutil -stdout -convert html /tmp/temp.rtf | /usr/local/bin/html2text"

tell application "BBEdit"
        -- do something here!

set the selection to myText

JD

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to