Created
September 18, 2013 05:09
-
-
Save LunaCodeGirl/6604802 to your computer and use it in GitHub Desktop.
A script for using in Redhand to email a photo to you when someone uses the wrong password.
From http://www.soma-zone.com/RedHand/a/scripts.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run image | |
set recipientName to "Joe User" | |
set recipientAddress to "[email protected]" | |
set theSubject to "Intrusion Attempt" | |
set theContent to "RedHand detected an intrusion attempt: " & image | |
set img to POSIX path of image | |
tell application "Mail" | |
set theMessage to make new outgoing message with properties | |
{subject:theSubject, content:theContent, visible:true} | |
tell content of theMessage | |
make new attachment with properties {file name:img} at after last paragraph | |
end tell | |
tell theMessage | |
make new to recipient with properties {name:recipientName, address:recipientAddress} | |
send | |
end tell | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment