Multiple Messages
Posted: Fri Dec 16, 2016 4:36 pm
So I'm using the script below to send a CCTV image to me and the wife, however it randomly sends me the same image twice, sometimes 3 times.
Any reason why?
Set frontdoor_pic to "/Users/Home/Downloads/frontdoor.jpg"
Tell application "SecuritySpy"
Capture image camera name "Front Door" as frontdoor_pic
With overwrite
End tell
Tell application "Messages"
Set DestFile to POSIX file "/Users/home/Downloads/frontdoor.jpg"
Send file DestFile to buddy "Pete"
Send file DestFile to buddy "Wife"
End tell
Any reason why?
Set frontdoor_pic to "/Users/Home/Downloads/frontdoor.jpg"
Tell application "SecuritySpy"
Capture image camera name "Front Door" as frontdoor_pic
With overwrite
End tell
Tell application "Messages"
Set DestFile to POSIX file "/Users/home/Downloads/frontdoor.jpg"
Send file DestFile to buddy "Pete"
Send file DestFile to buddy "Wife"
End tell