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 06-27-2010, 12:56 PM
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
 


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
Booting from backup guruuno General 27 10-17-2009 12:53 AM
Shell script not executing before backup gfesmire General 13 01-08-2009 10:37 PM
Do shell script erroring? Budgie General 1 02-08-2006 05:50 PM
Error: No space left on device tradervic General 11 06-29-2005 05:50 PM
Error when running SuperDuper via shell script kbradnam General 9 03-09-2005 06:12 PM


All times are GMT -4. The time now is 10:40 AM.


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