Created
March 30, 2014 05:02
-
-
Save shigemk2/9867818 to your computer and use it in GitHub Desktop.
Mac専用 open script
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/sh | |
function usage() { | |
echo "Usage : ${0} [option]" | |
echo "" | |
echo " アプリケーション実行ショートカット" | |
echo "e emacs" | |
echo "a activity monitor" | |
echo "g google chrome" | |
echo "" | |
exit | |
} | |
while getopts eag opt | |
do | |
case ${opt} in | |
e) | |
open "/Applications/Emacs.app";; | |
a) | |
open "/Applications/Utilities/Activity Monitor.app";; | |
g) | |
open "/Applications/Google Chrome.app";; | |
\?) | |
usage ;; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment