Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Applescript Help for basic repetative backup task

Applescript Help for basic repetative backup task
Thread Tools
Forum Regular
Join Date: Oct 2002
Location: East Yorkshire, UK
Status: Offline
Reply With Quote
Jan 19, 2003, 01:47 PM
 
Hi,

I have been using Macs for a few years now but have never spent the time to get to grips with any applescript functionality.

I have basic knowledge for writing simple batch files on PC's and I have a routine at work on my office PC that if I could transfer to my Mac would make my life a whole lot easier.

I think the best way forward is to explain what I do in the PC batch.

I run a task manger event for a backup.bat file each day to burn to CDR all the office work, the work is stored in several folders on the C: drive. It looks like this;

copy cserverbackup\admin\*.* e

where e: is the cd burner.

Now I have several lines in the batch for all the key files I want to backup.

How would I achieve this in OX.2.3 on my combo Ti? I know where all the items I want to backup are on my hard disk, e.g, Addressbook,stickies database, general files etc.

Is it best to use a Terminal script?

What would the code look like?

Any help would be appreciated

Thanks
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Jan 19, 2003, 02:35 PM
 
Here's an example of how to duplicate the contents of a folder on the startup disk to another disk.

tell application "Finder"
duplicate every item of folder "Admin" of folder "serverbackup" of the startup disk to disk "backup"
end tell

I suggest visiting the AppleScript website at:

www.apple.com/applescript/resources/

and the Macscripter Website which has hundreds of examples:

www.macscripter.net
     
Mr Ti  (op)
Forum Regular
Join Date: Oct 2002
Location: East Yorkshire, UK
Status: Offline
Reply With Quote
Jan 19, 2003, 02:47 PM
 
thanks, I'll check those sites out.
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 07:31 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2