Skip to content

Commit

Permalink
updated app_names.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Nov 18, 2024
1 parent e5abe24 commit f26b2a4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions applescript/app_names.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@
# https://www.linkedin.com/in/HariSekhon
#

# Prints sorted list of Applications running in the name format that can be passed to
# the adjacent script set_frontmost_process.scpt

set -euo pipefail
[ -n "${DEBUG:-}" ] && set -x
srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

if [ $# -gt 0 ]; then
cat <<EOF
Prints sorted list of Applications running in the name format that can be passed to
the adjacent script set_frontmost_process.scpt
EOF
exit 3
fi

"$srcdir/get_application_names.scpt" |
sort -fu # money

0 comments on commit f26b2a4

Please sign in to comment.