From 3413be7258c098dd439653c014d3a048f847474a Mon Sep 17 00:00:00 2001 From: Daniel Bayley Date: Wed, 26 Jul 2017 22:11:00 +0100 Subject: [PATCH 1/2] Improve open command --- pages/osx/open.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/osx/open.md b/pages/osx/open.md index d4d1152c0b..68da51bba8 100644 --- a/pages/osx/open.md +++ b/pages/osx/open.md @@ -6,9 +6,13 @@ `open {{file.ext}}` -- Run a graphical MacOSX application: +- Run a graphical macOS application: -`open /Applications/{{Application.app}}` +`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: From c3d824541b4d1cf8b8cd4c272576c54156daacf9 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Sun, 6 Aug 2017 11:00:26 +0530 Subject: [PATCH 2/2] 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. --- pages/osx/open.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/osx/open.md b/pages/osx/open.md index 68da51bba8..ed4889979f 100644 --- a/pages/osx/open.md +++ b/pages/osx/open.md @@ -10,7 +10,7 @@ `open -a {{Application}}` -- Run a graphical macOS app based on the bundle identifier (refer to osascript for an easy way get this): +- Run a graphical macOS app based on the bundle identifier (refer to `osascript` for an easy way get this): `open -b {{com.domain.application}}`