Files
dotfiles/aerospace/bin/open-applicaiton.sh
T
2026-05-10 01:39:06 +02:00

17 lines
540 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 | \
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