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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -