Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Automated Backups on Tiger Using rsync
Subject:   also having errors running script
Date:   2005-07-25 11:46:11
From:   KJC
I keep getting the ".....into type string" error in Script Editor. Any ideas? I'm trying to copy the contents of "Source" to the folder "Target". Both folders are on my Desktop
Here is what I have in Script Editor:


do shell script
"rsync -aE --delete /Users/kevinc/Desktop/Source/ /Users/kevinc/Desktop/Target/>>~/rsyncErr.txt || echo -n"


Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Also having errors running script
    2005-07-25 19:01:34  rdomidion [View]

    You need a space and a "2" before the ">>". Your command should look like:
    do shell script "rsync -aE --delete /Users/kevinc/Desktop/Source/ /Users/kevinc/Desktop/Target/ 2>>~/rsyncErr.txt || echo -n"
    • Also having errors running script
      2005-08-22 11:40:07  bbushman [View]

      problem solved. Had some concatonation errors in my shell script, and setting the result of the script to a var took care of the applescript error.

      if anyone can tell me why that is, and why several demos online don't have this problem, I'd be grateful.