rlesperance
06-27-2010, 11:56 AM
Hi Dave,
I have a regular Apple script that I would like to execute before actually beginning the backup. This is the script:
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
Can you help me translate this to a shell script ?
Regards.
Robert
I have a regular Apple script that I would like to execute before actually beginning the backup. This is the script:
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
Can you help me translate this to a shell script ?
Regards.
Robert