Created
February 21, 2017 01:54
-
-
Save thislooksfun/b372df3d8e183279dd515f154d7c3ed5 to your computer and use it in GitHub Desktop.
Small Bash script to gently quit applications from the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 1 ]; then | |
echo "Quitting '$1'" | |
osascript -e "quit app \"$1\"" | |
else | |
echo -e " Usage:\n gquit [Application Name]" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download the file and place it in a
bin
folder on your PATH (mine's in~/bin
), then rungquit <name>"