Thanks not only for the code sketch but also for the explanation. 

In poking around some more for existing scripts (I had looked some), I 
found Ranea.org's package of markdown scripts that do exactly what I want + 
more:

http://ranea.org/bbedit-markdown.html

Although Watts Martin (the scripts' creator) says they're untested when 
installed into Dropbox, they worked fine for me. To be explicit:

- Download and unzip
- Copy Markdown.bbpackage to dropbox/Application Support/BBedit/Packages . 
(I had to create the Packages folder)
- Restart BBedit (I think)
- The new functions are available under the BBedit script menu

If you don't use Dropbox, the script goes into ~/Library/Application 
Support/BBedit/Packages

Thanks again!

On Sunday, October 28, 2012 3:41:38 AM UTC-4, dweinberger wrote:
>
> I've spent about an hour trying to save myself a cumulative 22 seconds by 
> writing an AppleScript that will export to html the markdown file currently 
> in the front window, and then opens the newly-created html file in BBedit. 
> For simplicity's sake, I'm exporting the markdown to a file named 
> "convertedMarkdown.html"; exporting it to an html file that has the same 
> name as the markdown file (but with the .html extension, of course) would 
> be a nice refinement.
>
> I've tried recording the actions, but the resulting AppleScript skips the 
> "export to html" part, although it gets the "open the html file" part. Is 
> this because "export to html" isn't in the BBedit dictionary? Is there a 
> way around it?
>
> After all, reclaiming those cumulative 22 seconds over the course of my 
> life is important! (Also, at this point I'm just curious.)
>
> Thanks for your help, and for a fantastic product.
>
> David W.
>

-- 
-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>



Reply via email to