Re: LTS camera (american company rebranded Hikvision) proble
Posted: Sat Dec 17, 2016 2:42 pm
blysik wrote:It's a shell script that runs AppleScript:
- Code: Select all
curl -s http://user:email@example.com/Streaming/channels/1/picture > /tmp/8.jpg
tell application "Messages"
set targetBuddy to "+PHONENUMBERHERE"
set targetService to id of 1st service whose service type = iMessage
set myFile to "/tmp/8.jpg"
set DestFile to (POSIX file myFile) as string
send file DestFile to buddy targetBuddy of service id targetService
The mac this runs on is logged into an Apple iMessages account already and has iMessages open.