Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
317 B
1
Indexable
#!/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