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 question

applescript question
Thread Tools
Mac Elite
Join Date: Apr 2003
Location: The City Of Diamonds
Status: Offline
Reply With Quote
Jul 1, 2004, 07:02 AM
 
Hello, I would like to make an AppleScript that does the following:

-Copy let's say two or three folders from my hard drive to a location on an external hardrive (backup)
-compress the newly copied folders on the external drive using the BOMarchiveHelper.
-run the periodic script for maintenance and do a repair privileges

This is what I got working. Pretty pathetic as you can see :
Code:
tell application "Terminal" activate do script with command "cp -Rfv /Users/benoit/Music /Volumes/Sushi/Backup" in frontmost end tell
Would it be possible to tell the Finder to copy those files instead of the terminal ? (I added the -v to cp to help my "debugging" ) I would like to preserve the file attributes which are not copied using "cp".

I found this: http://forums.macnn.com/showthread.p...ght=zip+script to do the compression. But I don't understand anything about it. To be specific: I don't know which parts of code I would need to replace in order for it to work on my directory structure (it seems that Sal's post is the correct answer).

Some help would be appreciated. I've been working on this on the past few days, and this stuff is not really my cup of tea since I don't have the time to learn AppleScript. I'm on a tight schedule.

thanks
     
Mac Elite
Join Date: Feb 2000
Location: Nashua NH, USA
Status: Offline
Reply With Quote
Jul 1, 2004, 11:16 AM
 
Why not just call do shell script in the standard additions.
"man -k fork" tells me about CpMac whick is a resource compatable copy command.
Though it is possible to use the findersw move command.
     
   
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 01:04 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