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

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-15-2011, 06:17 AM
cookieme cookieme is offline
Registered User
 
Join Date: Nov 2009
Posts: 28
Question Backup on mount notification that daily backup not made

I'm trying to think of an easy way to check whether a user has done their daily SD backup and if they haven't some how remind them.

As the backup only happens when the drive is connected it can happen anytime during the day. One idea I have is to write an AppleScript that looks at the SD logs and IF a backup was made any time during the current day the AppleScript would add an all-day event to an iCal calendar called SD Backup. This way the user can easily look in their calendar and see if they've forgotten to backup.

Any suggestions or better solutions to this?

Thanks
Reply With Quote
  #2  
Old 10-15-2011, 07:31 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
You could also probably use Growl to do some sort of notification to run an application, and use that application to "turn off" a reminder that you'd do otherwise. (I don't know if Growl has a "run this script" action, but it probably does.)

You could do a similar thing with an "On successful completion" shell script.
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 10-15-2011, 02:23 PM
cookieme cookieme is offline
Registered User
 
Join Date: Nov 2009
Posts: 28
I can't find an option to run a shell script in the "On successful completion" drop down. Did you mean "Run shell script after copy completes" on the advanced tab?

If you meant the latter this would have to be a shell script that runs an applescript to add the event to ical or can I specify an applescript directly?
Reply With Quote
  #4  
Old 10-15-2011, 06:25 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Yes, sorry. It would have to be a shell script that runs an applescript (with, say, osascript).
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 10-16-2011, 06:35 AM
cookieme cookieme is offline
Registered User
 
Join Date: Nov 2009
Posts: 28
No worries. Thanks for your help.

I created the following little script:

Quote:
#!/bin/sh
#
# Shell script creates an iCal event using AppleScript.
#
osascript <<EOF
tell application "iCal"
tell calendar "SD Backup"
set theDate to current date
set theTime to time string of theDate
make new event at end with properties {summary:"SD Daily", start date:theDate, allday event:true, description:"Completed at " & theTime}
end tell
end tell
EOF
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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
Startup Disc and Hard Drive Partitioning Questions Paint Guy General 15 10-27-2010 02:25 PM
Failed to Mount jokazaki General 1 07-31-2009 07:56 AM
alternating backup snoopy67 General 11 04-04-2009 05:14 PM
Backup Strategy - Weekly & daily goldcrest General 7 10-05-2008 04:38 PM
Server drive won't mount after backup rhennosy General 1 11-09-2007 03:49 PM


All times are GMT -4. The time now is 01:58 PM.


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