diff --git a/aerospace/bin/open-applicaiton.sh b/aerospace/bin/open-applicaiton.sh index f56631b..61079a7 100644 --- a/aerospace/bin/open-applicaiton.sh +++ b/aerospace/bin/open-applicaiton.sh @@ -4,4 +4,13 @@ ls /Applications/ /Applications/Utilities/ /System/Applications/ /System/Applica { cat; echo "Finder"; } | \ sort | \ raymenu | \ - xargs -I {} open -n -a "{}.app" + while read app; do + if [ "$app" = "Finder" ]; then + osascript -e 'tell application "Finder" + activate + make new Finder window + end tell' + else + open -n -a "$app.app" + fi + done