1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:02:07 +02:00
tldr/pages/osx/open.md
2019-10-13 00:32:00 +03:00

27 lines
563 B
Markdown

# 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 to 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}}`