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, 04: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, 05:42 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,358
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, 05: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, 05:56 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,358
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, 06: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, 06:34 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,358
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, 06: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
  #8  
Old 02-23-2010, 06:37 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,358
Send a message via AIM to dnanian
I think I've said what I think. If you want, you can play the sound that way (although I think you're better off with Growl, since it can also proactively notify about problems). But don't eject like that.
__________________
--Dave Nanian
Reply With Quote
  #9  
Old 02-23-2010, 06:38 PM
cookieme cookieme is offline
Registered User
 
Join Date: Nov 2009
Posts: 28
Quote:
Originally Posted by dnanian View Post
I think I've said what I think. If you want, you can play the sound that way (although I think you're better off with Growl, since it can also proactively notify about problems). But don't eject like that.
Ok, thank you.

Last edited by cookieme; 02-24-2010 at 08:16 AM.
Reply With Quote
  #10  
Old 02-24-2010, 08:17 AM
cookieme cookieme is offline
Registered User
 
Join Date: Nov 2009
Posts: 28
I'm sorry, but I've got to ask what is the difference between what I want to do with regards to ejecting and what this user does with his Drobo http://www.shirt-pocket.com/forums/s...ead.php?t=5466 ? Isn't this user ejecting (unmounting) the destination with a shell script and the "Run shell script after copying" option?
Reply With Quote
  #11  
Old 02-24-2010, 09:40 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,358
Send a message via AIM to dnanian
Yes. But this is a different case, and what I suggested is what I'd do in this case. In his case, the intermediate volume couldn't be ejected, and there was basically no easy workaround. The suggestion I'm providing you with here is easier and doesn't require a shell script.

You can, of course, do what you want. But you asked me for advice for your situation, I provided it... and I stand by my suggested method.
__________________
--Dave Nanian
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 12:22 AM.


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