|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
Wouldn't it make more sense to store this in an applescript file, and run that from a shell script? In other words:
Code:
!/bin/sh osascript -e /path/to/some/script
__________________
--Dave Nanian |
#3
|
|||
|
|||
Hi Dave,
The only way I used shell scripts is from inside an AppleScript. Now I will be doing it the other way around, and I know nothing about shell scripting. I will try it and get back ... Thank you. Robert |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Booting from backup | guruuno | General | 27 | 10-16-2009 11:53 PM |
Shell script not executing before backup | gfesmire | General | 13 | 01-08-2009 09:37 PM |
Do shell script erroring? | Budgie | General | 1 | 02-08-2006 04:50 PM |
Error: No space left on device | tradervic | General | 11 | 06-29-2005 04:50 PM |
Error when running SuperDuper via shell script | kbradnam | General | 9 | 03-09-2005 05:12 PM |