Skip to content

Instantly share code, notes, and snippets.

@naus3a
Created April 2, 2018 19:28
Show Gist options
  • Save naus3a/117901eea80da5920b542742653bd9d8 to your computer and use it in GitHub Desktop.
Save naus3a/117901eea80da5920b542742653bd9d8 to your computer and use it in GitHub Desktop.
Launch the 1st .app in the script folder
#/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