Shirt Pocket Discussions

Shirt Pocket Discussions (
-   General (
-   -   Send email upon completion? (

shorton 01-29-2006 03:01 PM

Send email upon completion?
I have searched the forums and not found this topic, but may have missed it.

I am a novice and know nothing about writing a UNIX shell script or applescript but probably could muddle through automator.

What I would like to accomplish is some sort of notification via email after SuperDuper! has completed a scheduled task. I figured that having it run a script upon completion would be the way to go.

Has anyone written/posted, etc. some sample scripts that would send an email to a specified address? Using OSX direct mail feature might be better than launching an email client application.

Curious, but ignorant.

If not, I hope that the forum administrator will please consider email notification a feature request.

Thank you,

dnanian 01-29-2006 05:10 PM

Hi, SHorton. It's something we're considering; thanks. If you're trying to do this with a scheduled job, we've got "hooks" in the standard script that'll allow you to achieve your goal, though it requires programming in AppleScript. There are various threads on the forums that explain the techniques involved...

Budgie 01-30-2006 06:16 PM

Hi shorton

I use the below, and have it set it up as follows:

tell application "System Events" to tell process "Mail"
keystroke "n" using command down
set TheAddress to "Your email address"
set theSubject to "SD Has Completed: "
tell application "Mail"
set newMessage to make new outgoing message with properties {subject:theSubject}
tell newMessage
make new to recipient at end of to recipients with properties {address:TheAddress}
-- set visible to true --so you can edit the message
end tell
end tell
end tell

1) Cut and paste the Applescript into script editor and click "compile"

2) In the Area "Your email address" type the address where you wish the
mail to goto.

3) In the area "SD Has Completed: " type what ever you wish to show up in the subject line of your mail.

4) Save the file, name it what you will, place the file where you wish.

5) Launch "SD", click on "Options", then "Advanced", check "Run shell script after copy completes", then click
"choose" and locate your applescript that you just saved, click "OK", then click "OK",

6) your good to go :)

hope this helps


All times are GMT -4. The time now is 09:15 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2022, vBulletin Solutions, Inc.