Last active
October 19, 2015 19:59
-
-
Save AaronRutley/1ecd029af47b049bfa29 to your computer and use it in GitHub Desktop.
end.sh
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
# end.sh | |
blueutil on | |
echo "--- iMac Bluetooth on..." | |
sleep 5 | |
echo "--- Target Display Mode command..." | |
osascript -e 'tell application "System Events" to key code 144 using command down' | |
echo "--- Target Display Mode Ended......." | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting the error:
line 1: blueutil: command not found
even though it works perfectly in the iMac's terminal, when ssh'ing into the iMac, and when running the shell script in the iMac's terminal...
Any idea why this might be happening?