osx - open file with particular application where spaces in application name -
i want open ex1.py in terminal. if go:
open ex1.py file opens in textwrangler.
but want use sublime. tried this:
open -a sublimetext ex1.py unable find application named 'sublimetext' open -a sublime text 2 ex1.p files /users/macuser/documents/pyleo/text , /users/macuser/documents/pyleo/2 not exist.
when control click sublime > show in finder name "sublime text 2". presumably spaces causing issue.
how can open ex1.py in sublime text 2 using terminal?
wrap application name in single quotes:
open -a 'sublime text 2' ex1.py
Comments
Post a Comment