Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-29-2006, 04:01 PM
shorton shorton is offline
Registered User
 
Join Date: May 2005
Location: NH, USA
Posts: 16
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,
SHorton
Reply With Quote
  #2  
Old 01-29-2006, 06:10 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,764
Send a message via AIM to dnanian
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...
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 01-30-2006, 07:16 PM
Budgie Budgie is offline
Registered User
 
Join Date: Aug 2005
Location: New Zealand
Posts: 78
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"
activate
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}
send
-- 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

Budgie
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Program and email automatically opening on boot from backup - mysterious emikysa General 4 09-29-2005 11:59 AM


All times are GMT -4. The time now is 01:10 AM.


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