Applescript for backing up ?

Joined
Mar 3, 2006
Messages
1
Reaction score
0
Hi everyone...

I am trying to write an AppleScript to periodically back up several active folders (e.g. MAIL, AddressBook, etc) to a 512 MB flash drive.

I have included the "with replacing" instruction, at the end of the "select folder" line, which passes Syntax.

At the end of the "copy" line, Syntax does NOT accept it.

When I run the script, it runs through, but I get "AppleScript Error - Finder error. An item with the same name already exists in destination".
I know !

That is why I added "with replacing".......

thanks

Robert
 

Ric

Joined
May 14, 2004
Messages
4,260
Reaction score
5
Hi there Robert and welcome !

Please can you post the full script then we can have a look at the syntax you have used...

thanks

Ric
 

Ric

Joined
May 14, 2004
Messages
4,260
Reaction score
5
Posted on behalf of Robert:

tell application "Finder"
*****activate
*****select disk "512 HD"
*****open selection
*****select startup disk
*****open selection
*****select folder "AddressBook" of folder "Application Support" of folder "Library" of folder "robertww" of folder "Users" of startup disk with replacing
*****duplicate selection to disk "512 HD"
end tell
 

Ric

Joined
May 14, 2004
Messages
4,260
Reaction score
5
Hi Robert,

I have posted your script above for you...

If you look at the script above the word 'replacing' is in green...these means that it is a variable...

If you can post me a list of the folders that you want to back up and I'll show you how to write it...

regards

Ric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top