Files
dotfiles/aerospace/bin/open-applicaiton.sh
T
2026-05-09 23:04:54 +02:00

17 lines
568 B
Bash

ls /Applications/ /Applications/Utilities/ /System/Applications/ /System/Applications/Utilities/ /Users/ivar.fatland/Applications/ /Users/ivar.fatland/Applications/Chrome\ Apps.localized/ | \
grep '\.app$' | \
sed 's/\.app$//g' | \
{ cat; echo "Finder"; } | \
sort | \
raymenu | \
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