Skip to content

Instantly share code, notes, and snippets.

@AaronRutley
Last active October 19, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronRutley/1ecd029af47b049bfa29 to your computer and use it in GitHub Desktop.
Save AaronRutley/1ecd029af47b049bfa29 to your computer and use it in GitHub Desktop.
end.sh
# 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
@MatTarantini
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment