Hello, scripters.
I am trying to automate sending a screen capture by Mail, but the capture does not attach to the message.
do shell script "screencapture /Users/macdiario/Desktop/Captura.jpeg" set CapturaAdjunta to "LionRetail:macdiario:Escritorio:Captura.jpeg" delay 2 tell application "Mail" set this_message to ¬ make new outgoing message with properties ¬ {subject:"Screen Capture"} tell this_message make new to recipient with properties ¬ end tell activate tell content of this_message make new attachment with properties {file name:CapturaAdjunta} end tell set visible of this_message to true send this_message end tell
What am I doing wrong ?
Thanks in advance.
|