Minimalist-Markdown-Editor-for-Chrome icon indicating copy to clipboard operation
Minimalist-Markdown-Editor-for-Chrome copied to clipboard

How to open file from command line?

Open MaerF0x0 opened this issue 9 years ago • 1 comments

on osx I've gotten close:

  1. Make an app shortcut in Applications folder:
    1. open chrome://extensions, right click and choose create shortcut
    2. It will put the shortcut to ~/Applications/Chrome\ Apps.localized
    3. I moved it to the regular Applications folder: /Applications
    4. I renamed it to "md"
  2. now i can open with open -a "md"

My question is: How can i make it open a file? like open -a "md" README.md (that doesnt work)

MaerF0x0 avatar Feb 16 '16 22:02 MaerF0x0

The above steps in one can also be solved using a simlink -- eg:

ln -s /Volumes/Macintosh_HD/Users/shauncutts/Applications/Chrome\ Apps.localized/Default\ pghodfjepegmciihfhdipmimghiakcjf.app/Contents/MacOS/app_mode_loader ~/bin/md

However, it still doesn't take a command line argument for the file to open. Great if it could!

shaunc avatar Jan 13 '17 21:01 shaunc