This is a simple TextMate command that allows you to preview the current document you're editing right on Marked editor.
- Go to
Bundles
→Bundle Editor
→Show Bundle Editor
(or simply⌃⌥⌘B
): - Locate the
Markdown
bundle then click on it: - On the bottom of the window you'll find a plus icon. Click on it then select
New Command
: - Name it as "Preview on Marked", and make its shortcut
⌘R
: - Now you just need to paste the script below to the command input.
* To test it out, you can create a `.md` file, save it then hit `⌘R`. If you have everything set, Marked will open with the preview of your file. If you don't have it installed, it'll prompt an error with the link for the download:

Happy editing!
It's a matter of taste of course but under 10.6 Marked is called MarkedSL so user must either change name of the app or chenge name in the script