Created
July 31, 2012 02:59
-
-
Save rcaldwel/3213143 to your computer and use it in GitHub Desktop.
bash: unix: applescript: set a bash var to the output of a scpt
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
the_app=$( | |
osascript 2>/dev/null <<EOF | |
tell application "System Events" | |
name of first item of (every process whose frontmost is true) | |
end tell | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment