Can anyone help me?
I have a apple script, that send security camera picture.
it worked really well before, but after i updated to el capitan
it sends email without attachment. No errors, it just wont send the picture.
- Code: Select all
do shell script "curl -f 'http://admin:passwords@192.168.100.xxx/image/jpeg.cgi' -o ~/Desktop/IPCam/picture.jpg"
delay 1
tell application "Mail"
set theSubject to "picture" -- the subject
set theContent to "some picture" -- the content
set theAddress to "someone@someone.com" -- the receiver
set theSignatureName to "someone" -- the signature name
set theAttachmentFile to "OSX:Users:Mac_mini:Desktop:IPCam:picture.jpg" -- the attachment path
set msg to make new outgoing message with properties {sender:"<someone@someone.com>", visible:true, subject:theSubject, content:theContent}
tell msg to make new to recipient at end of every to recipient with properties {address:theAddress}
tell msg to make new attachment with properties {file name:theAttachmentFile as alias}
send msg
end tell