Mac Help Forums


Reply
Thread Tools Display Modes

Applescript for backing up ?

 
New Member
Join Date: Mar 2006
Posts: 1
 
      4th March 2006
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
 
Reply With Quote
 
 
 
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      4th March 2006
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
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      6th March 2006
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
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      6th March 2006
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing up to DVD Chris Ridd UK Macs 8 19th October 2008 09:12 AM
AppleScript Language Guide for AppleScript 2.0 Patrick Stadelmann AppleScript 0 12th March 2008 05:00 PM
Backing up DVD's Alan Cole UK Macs 7 28th August 2005 07:18 PM
Applescript backing up question. synecdoche Portables 1 9th October 2004 02:52 AM
Delay between Applescript end and Applescript App Closing Lucanus AppleScript 2 14th September 2003 11:38 PM


All times are GMT +1. The time now is 09:32 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Yikes! Teacher needs help!
Mollyc4627 (34 Minutes Ago, 08:57 PM)

Unable to log in to websites
AMonty20 (3 Hours Ago, 05:52 PM)

Add Different Speech Commands
bae_22 (4 Hours Ago, 04:40 PM)

Login (2 macs) passwords spontaniously changed?
Roger Vaught (6 Hours Ago, 03:31 PM)

Best car charger or inverter for Macbook Pro?
imeme87 (6 Hours Ago, 03:22 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51