Skip to content

Instantly share code, notes, and snippets.

@jhirbour
Created March 15, 2022 21:45
Show Gist options
  • Save jhirbour/b7c56d31de84fc419c36c861d71076a7 to your computer and use it in GitHub Desktop.
Save jhirbour/b7c56d31de84fc419c36c861d71076a7 to your computer and use it in GitHub Desktop.
#!/bin/bash
MyShellVar=$(ls /tmp)
/usr/bin/osascript << EOF
set MyApplVar to do shell script "echo '$1'"
tell application "Finder"
activate
set result to display dialog MyApplVar buttons {"OK", "OK2"} default button "OK"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment