open document via command line

's Avatar


23 Apr, 2015 08:17 PM

It would be great to be able to open a file via the command line. TextMate lets you
do this via a binary they ship called mate. So you can do mate . to edit the
tree of files in the current directory. Another approach would be to integrate via the
exisitng open command. Either way, this would make a great new feature to an
already great app.


  1. Support Staff 1 Posted by Brett on 23 Apr, 2015 08:45 PM

    Brett's Avatar

    Marked 1 originally shipped with a mark binary, but it became problematic when moving to the app store. Just can just use open -a 'Marked 2'

    You can also create a shell alias:

     alias mark="open -a 'Marked 2'"

    and then just use mark

    Further, there's a URL handler for more advanced tasks like previewing arbitrary text, changing styles, forcing all or individual windows to refresh, etc. This can also be called with the open command.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac