| Sign In/My Account | View Cart |
| Article: |
Automated Backups on Tiger Using rsync | |
| Subject: | Rsync part works fine, but what's up with Applescript? | |
| Date: | 2005-08-22 08:40:09 | |
| From: | bbushman | |
|
Response to: Rsync part works fine, but what's up with Applescript?
|
||
|
PS: just read the betalogue post related to this topic (thanks pierre!) Perhaps adding /usr/local/bin/ to the beginning will help after I stop getting my other error, but for now, I'm still (of course) getting the AS error.
|
||
Showing messages 1 through 1 of 1.
So I looked at the dictionary from terminal and the help from AppleScript and came up with the following:
You have to explicitly tell terminal to execute the shell script.
e.g. (The quoted text below should be on one line.)
tell application "Terminal"
do shell script "ls /Users/rharder/Desktop/Test/ > /Users/rharder/Desktop/test.txt"
quit
end tell
It also works with "do script" for "do shell script"....
You can leave off the "quit" at the end, but the terminal app remains after execution.
This solution seems to allow any number of shell scripts to be executed from iCal rather than cron which is nifty and cool and all that jazz.....
You should be able to figure out how to marry bash, AppleScript, and iCal with this info.....
Hope this helps, good luck,
Ray