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

Go Back   Shirt Pocket Discussions > SuperDuper! > General

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-31-2010, 03:19 PM
rlesperance rlesperance is offline
Registered User
 
Join Date: Dec 2007
Posts: 40
Compressing the sparse image file ...

Hi,

Every time a SD backup is made to a sparse image file, the file increases in size. I would like to automate this procedure by executing a shell script at the end of my backup.

I wrote a regular AppleScript that works well. Can somebody help me convert this script in SS language:


Code:
property imagesPathList : {"/Sauvegardes/SuperDuper/Duplication - iMacG5.sparseimage"}

tell application "Caffeine"
	turn on
end tell

repeat with i in imagesPathList
	set filePath to i
	try
		do shell script "hdiutil compact " & quoted form of filePath
	end try
end repeat

tell application "Caffeine"
	turn off
end tell
Regards.



Robert Lespérance


P.S. Caffeine is an utility that can reset the system's idletime periodically, preventing the computer of going to sleep. I suspect that the shell script will not need these statements because SD does that already.
Reply With Quote
 


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
Sparse Image - out of space rgrahame General 1 11-14-2008 03:43 PM
SD not unmounting sparse image volumes acronce General 1 09-14-2008 11:22 AM
Hangs while backing up to network mounted sparse image acronce General 9 09-11-2008 01:25 PM
Ever-Growing Sparse Image File... Marco_Polo General 6 02-19-2007 10:21 AM
Sparse image from aborted DMG backup? Winston General 9 10-22-2005 12:28 PM


All times are GMT -4. The time now is 01:51 AM.


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