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

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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
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 11:08 AM.


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