Skip to content

Instantly share code, notes, and snippets.

@collindonnell
collindonnell / BBedit-Preview-in-Marked.scpt
Created February 29, 2012 05:56
Preview BBEdit Document in Marked
-- Preview the currently active BBEdit document using Marked.
tell application "BBEdit"
activate
-- Ask BBEdit for it's active document.
set the_document to active document of text window 1
-- If the file doesn't alreay exist, ask the user to save it.
if not the_document's on disk then
save the_document