From 7b0ea5cbdaaa5b8392777ad207c74cb27411eab1 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Tue, 1 Oct 2024 17:42:59 -0500 Subject: the big refactor --- macos.local/.local/bin/launcher.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 macos.local/.local/bin/launcher.org (limited to 'macos.local/.local/bin/launcher.org') diff --git a/macos.local/.local/bin/launcher.org b/macos.local/.local/bin/launcher.org new file mode 100755 index 0000000..f74d094 --- /dev/null +++ b/macos.local/.local/bin/launcher.org @@ -0,0 +1,13 @@ +#+title: Application Launcher Script + +Search several locations for applications with =choose=. +#+begin_src sh :tangle ~/.local/bin/launcher :mkdirp yes :tangle-mode o755 + #!/bin/sh + app="$(ls /Applications/ /Applications/Utilities/ /System/Applications/ /System/Applications/Utilities/ ~/Applications/ | grep '\.app$' | sed 's/\.app$//g' | choose -f "SauceCodePro Nerd Font" -s 15 -b ece0c9).app" +#+end_src + +Try opening the app in each location. +#+begin_src sh :tangle ~/.local/bin/launcher :mkdirp yes :tangle-mode o755 + open -n "$HOME/Applications/$app" || open -n "/Applications/$app" || open -n "/System/Applications/Utilities/$app" || open -n "/System/Applications/$app" || open -n "/Applications/Utilities/$app" + +#+end_src -- cgit v1.2.3