Hey,
I use CamSpinner to capture my webcam images, works pretty well, and was
hoping there might be some way to email the images?
If not it might be nice to add an "attach file" to the email action.
Trying something like this. It sends the email but no attachment:
- Code: Select all
tell application "Mail"
set bodyvar to "Here is the photo taken with the living room camera:"
set addrVar to "ckeyes@xxxx.net" ---EMAIL ADDRESS HERE
set subjectvar to "Living Room Webcam Image"
set attachmentVar to "/Users/TV/Applications/CamSpinner/WebCam Data Files/webcam1.jpg" ---CHANGE FILE NAME HERE (THE USER NAME SHOULD BE THE ONLY DIFFERENT THING)
set newMessage to (a reference to (make new outgoing message))
tell newMessage
make new to recipient at beginning of to recipients with properties {address:addrVar}
set the subject to subjectvar
set the content to bodyvar
tell content
make new attachment with properties {file name:attachmentVar}
end tell
end tell
send newMessage
end tell
Thanks,
Carl