tldr/pages/osx/open.md
Agniva De Sarker c3d824541b Wrap osascript within backticks
To allow clients to pick up the text as another command and allow the link to the page to be shown.
2017-08-06 11:00:26 +05:30

560 B

open

Opens files, directories and applications.

  • Open a file with the associated application:

open {{file.ext}}

  • Run a graphical macOS application:

open -a {{Application}}

  • Run a graphical macOS app based on the bundle identifier (refer to osascript for an easy way get this):

open -b {{com.domain.application}}

  • Open the current directory in Finder:

open .

  • Reveal a file in finder:

open -R {{path/to/file}}

  • Open all the files of a given extension in the current directory with the associated application:

open {{*.ext}}