Untitled
#!/bin/bash # This shell script runs an AppleScript using osascript osascript <<EOF tell application "Apple Configurator" set deviceList to every device if (count of deviceList) > 0 then display dialog "Device connected" else display dialog "No device connected" end if end tell EOF
Leave a Comment