1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 18:17:55 +01:00
tldr/pages/osx/open.md

28 lines
560 B
Markdown
Raw Normal View History

# open
> Opens files, directories and applications.
- Open a file with the associated application:
2015-12-30 00:43:46 +01:00
`open {{file.ext}}`
2017-07-26 23:11:00 +02:00
- Run a graphical macOS application:
2017-07-26 23:11:00 +02:00
`open -a {{Application}}`
- Run a graphical macOS app based on the bundle identifier (refer to `osascript` for an easy way get this):
2017-07-26 23:11:00 +02:00
`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:
2015-12-30 00:43:46 +01:00
`open {{*.ext}}`