Brett on 03 Jun, 2018 12:22 PM
Try downloading this directly, unzipping, and placing into the BBEdit
Scripts folder (~/Library/Application Support/BBEdit/Scripts). You don't
need to open it in Script Editor at all, it will run with the
"applescript" extension as an uncompiled script.
Thank you again for your help. The new script works fine. BBEdit and Marked 2 are (IMHO) the best Markdown writing combination. I use a number of snippets in BBEdit to make life easier.
Answer this only if you have time; the two scripts are the same except for the second being an AppleScript. Is the script file being a *.applescript file rather than a *.scpt file?
There is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take the lead in the introduction of a new order of things — Niccolo Machiavelli, The Prince, ch. 6
with a change it works for me also for CotEditor, really cool! Great, thanks...
-- Place in ~/Library/Application Support/com.coteditor.CotEditor
-- Use from the Script menu bar item while editing a Markdown document (must be saved first)
tell application "CotEditor" to set mdFile to file of document of window 1
tell application "Marked 2"