Files
dotfiles/aerospace/bin/open-applicaiton.sh
2026-05-12 21:30:06 +02:00

17 lines
564 B
Bash

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