From 4f1c4015130c1903f4e6c11cfc80a320503b3ae9 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sun, 16 Oct 2022 07:25:35 +0200 Subject: [PATCH] open: add -n example, highlight arguments (#9075) --- pages/osx/open.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pages/osx/open.md b/pages/osx/open.md index 2126054f84..12d82f37c0 100644 --- a/pages/osx/open.md +++ b/pages/osx/open.md @@ -7,11 +7,11 @@ `open {{file.ext}}` -- Run a graphical macOS application: +- Run a graphical macOS [a]pplication: `open -a "{{Application}}"` -- Run a graphical macOS app based on the bundle identifier (refer to `osascript` for an easy way to get this): +- Run a graphical macOS app based on the [b]undle identifier (refer to `osascript` for an easy way to get this): `open -b {{com.domain.application}}` @@ -19,10 +19,14 @@ `open .` -- Reveal a file in Finder: +- [R]eveal 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}}` + +- Open a [n]ew instance of an application specified via [b]undle identifier: + +`open -n -b {{com.domiain.application}}`