Created
April 2, 2018 19:28
-
-
Save naus3a/117901eea80da5920b542742653bd9d8 to your computer and use it in GitHub Desktop.
Launch the 1st .app in the script folder
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 | |
here="`dirname \"$0\"`" | |
for i in $here/*.app; do | |
filename=$(basename -- "$i") | |
extension="${filename##*.}" | |
filename="${filename%.*}" | |
$i/Contents/MacOS/$filename | |
break | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment