View Single Post
  #1  
Old 06-27-2010, 11:56 AM
rlesperance rlesperance is offline
Registered User
 
Join Date: Dec 2007
Posts: 40
Converting an Apple script to a shell script ...

Hi Dave,

I have a regular Apple script that I would like to execute before actually beginning the backup. This is the script:

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


Can you help me translate this to a shell script ?

Regards.




Robert
Reply With Quote