Brett on 26 May, 2018 08:07 PM
BBEdit's "Markup->Preview in..." renders a temporary HTML file from the
Markdown and opens that. It's not actually opening the file in Marked.
Marked won't do anything other than display it because it doesn't
attempt to override HTML styles, and when the temporary file is cleaned
up by BBEdit, then Marked is left hanging with no file at all.
To preview the file you're currently editing and be able to update on
save (and take advantage of Marked's feature set), the best bet is to
just drag the proxy icon from the BBEdit title bar to Marked's icon.
Brett on 26 May, 2018 08:22 PM
Just whipped up a little script:
tell application "BBEdit" to set mdFile to file of document of window 1
tell application "Marked 2"
Save that as "~/Library/Application Support/BBEdit/Scripts/
Open in Marked.scpt" using Script Editor and then you can assign a shortcut key in BBEdit Preferences->Menus to trigger it. It will simply open whatever file BBEdit is currently editing in Marked.
Ran into the same issue with BBEdit two years on. Your little script @Brett works like a charm. As @Peter said, not such a major problem, just a little annoyance. I suppose one could use the BBEdit previewer, but Marked 2 just has so many more capabilities. Thanks for the script.