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 02-23-2010, 03:26 PM
cookieme cookieme is offline
Registered User
 
Join Date: Nov 2009
Posts: 28
SD completion alert and ejecting

I need to simplify SD usage for a user who is not very computer literate. There are two things I need some help with:

1. I know that SD works with Growl, but is it possible to have SD use the alert sound specified in System Preferences to alert the user that the copying is complete?

2. The user I'm helping has an external USB drive that has two partitions. Both are used for alternating SD backups. Problem is when the drive is connected obviously both partitions are mounted. No problem, but unfortunately once the SD copying is complete if I use the option "On successful completion: Eject <destination>" the other partition is still mounted. If you eject one of the partitions in the Finder you get a message asking if you want to eject only that one or all partitions on that drive. How can I automate this for SD, so that the user doesn't have to manually eject the remaining partition and can simply unplug the drive when SD is done?

Thanks
Reply With Quote
  #2  
Old 02-23-2010, 04:42 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
1. If there's a Growl notification that beeps, sure.

2. You really can't, not with two partitions... unless you run a second copy that, say, copies *nothing* to the other partition (using copy newer/different) and then ejects it. That would work...
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 02-23-2010, 04:50 PM
cookieme cookieme is offline
Registered User
 
Join Date: Nov 2009
Posts: 28
Quote:
Originally Posted by dnanian View Post
1. If there's a Growl notification that beeps, sure.

2. You really can't, not with two partitions... unless you run a second copy that, say, copies *nothing* to the other partition (using copy newer/different) and then ejects it. That would work...
I've been googling to try and found solutions to both issues. I'm not very familiar with shell scripting, but isn't it possible to write a small script to eject (not sure difference with unmount) the disk, so that it does the same as if you eject in the Finder and after that play the system alert sound?

Can I use a compiled AppleScript instead of a shell script with SuperDuper's "Run shell script after copy completes"?
Reply With Quote
  #4  
Old 02-23-2010, 04:56 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
I wouldn't do that, really. I'd do what I suggested...
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 02-23-2010, 05:09 PM
cookieme cookieme is offline
Registered User
 
Join Date: Nov 2009
Posts: 28
Quote:
Originally Posted by dnanian View Post
I wouldn't do that, really. I'd do what I suggested...
Can you please explain why you wouldn't run a shell script to do those two things after copying? I can understand why you would use Growl for the sound alert as you have built in support for it, but are there any problems with doing it without Growl?
Reply With Quote
  #6  
Old 02-23-2010, 05:34 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
Because you can't eject a drive we're looking at, and the 'after copy' shell script runs while we're still expecting the drive to be there.
__________________
--Dave Nanian
Reply With Quote
  #7  
Old 02-23-2010, 05:35 PM
cookieme cookieme is offline
Registered User
 
Join Date: Nov 2009
Posts: 28
I've put together this shell script:

Code:
#!/bin/bash
/usr/sbin/diskutil eject /Volumes/SD*
afplay /System/Library/Sounds/Hero.aiff
The external USB drive has two partitions called SD Daily and SD Weekly.

What do you think?
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


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


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