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 08-01-2006, 08:35 AM
brantwinter brantwinter is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
Can I use DropDMG to split sparseimage 4 DVD

Hi - I am thr prud new owner of a SupderDuper licence ! I am looking to maybe try and keep a copy of my sparseimage on dvd about once every 6 months away from the house. I need to find a way to automate the process of splitting the sparse image into 4Gb chunks to burn to DVD. I have found a product called DropDMG hich looks awesome as it has Automator support. I was quite dissapointed to find SuperDuper did not have such Automator support. I figured that somehow I could trigger the Automator action anyway from SD once it had finished a copy using the GUI, but I realised I would have to hard code the resultant sparse image name ( not a big issue ) does anyone know how to call an Automator action from the SD GUI and secondly does anyone know if SD intends to include Automator support in the future.

Great product by the way !
Reply With Quote
  #2  
Old 08-01-2006, 08:46 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
We allow you to call out to a shell script after the copy using the Advanced tab, Brant, so you can do all sorts of things, including calling Automator Actions, AppleScripts, etc.
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 08-01-2006, 08:55 AM
brantwinter brantwinter is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
Thansk for the fast reply ! Trouble is, I am not quite sure how to call the Automator script as the GUI references calling a shell script. I have no idea how to write this ! Will SD support Automator in the future ?
Reply With Quote
  #4  
Old 08-01-2006, 09:12 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
We're certainly looking at supporting automator in the future, but I can't make any promises.

Since Automator is really AppleScript, pretty much, it might be easiest to do this in AppleScript. But, it might also be even easier to just do it in the Shell, since the tool you're trying to use to split the image is actually "hdiutil", which is a shell tool. This could be a great time to add shell scripting to your personal toolkit.

The command to use is basically:

hdiutil convert path-to-sparse-image UDRO -segmentSize 4.5g -o somename.dmg

which converts the sparse image to a read-only DMG in 4.5GB parts. More details can be found in the "man" page for hdiutil:

man hdiutl

To put this in a shell script, you'd use something like:

#!/bin/sh
hdiutil convert "$6" UDRO -segmentSize 4.5g -o "$3.dmg"

We automatically give you various things when we call your shell script (see p43 of the User's Guide), including the name of the destination volume and the name of the sparse image. So, $6 is the name of the image (which you're converting), and $3 is the name of the destination volume. So, you're converting the sparse image to a series of DMGs named after the destination volume.

If, instead, you want to pass this information to an AppleScript, you can use "osascript" to do so, which is the way to call AppleScript from the shell.

As above, you can do

man osascript

to get documentation. And, since you can pass in arguments to the script, you can hand it the information we're providing you about the image name, etc:

#!/bin/sh
osascript thescript.scpt "$1" "$2" "$3" "$4" "$5" "$6"

which would call "thescript.scpt" with the 6 arguments we're passing you.

No doubt that's a lot to absorb, but I hope it'll get you started.
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 08-01-2006, 09:21 AM
brantwinter brantwinter is offline
Registered User
 
Join Date: Aug 2006
Posts: 10
That sure does give me something to get started with ! Do I need to chmod the .scpt file ?

Thanks again !
Reply With Quote
  #6  
Old 08-01-2006, 09:45 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'd need to chmod the shell script, but the scpt is an applescript and doesn't need to be marked as executable.
__________________
--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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with sparseimage backup: LOSS OF DATA germ General 3 06-19-2006 09:27 PM
Backup VS. Sparseimage? MMM General 1 03-27-2006 05:31 PM
Backup fails because of not enough room on destination sparseimage file??? tubwreck General 6 03-24-2006 10:10 AM
Sparseimage date anomaly; Do sleeping Macs work? & UI suggestions DrDan in MA General 3 02-11-2006 07:03 PM
Update only a specific folder in a sparseimage ? Wanda General 9 01-29-2006 09:26 PM


All times are GMT -4. The time now is 10:51 PM.


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