Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rustymyers/5700ad9658fb65e44bebe28ed02fd069 to your computer and use it in GitHub Desktop.
Save rustymyers/5700ad9658fb65e44bebe28ed02fd069 to your computer and use it in GitHub Desktop.
for i in /Users/*; do
myUsers=($i ${myUsers[*]})
done
echo $myUsers
userResponse=$(/Users/rzm102/Desktop/CocoaDialog.app/Contents/MacOS/CocoaDialog standard-dropdown --items ${myUsers[*]})
echo "$userResponse"
read returnvalue userselection <<< $userResponse
echo "Return code: $returnvalue"
echo "User Selected: ${myUsers[$userselection]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment