rlesperance
08-31-2010, 03:19 PM
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:
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.
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:
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.