Re: Simple request
Re: Simple request
- Subject: Re: Simple request
- From: Dave Stewart <email@hidden>
- Date: Fri, 7 Mar 2003 17:03:42 -0800
On Friday, March 7, 2003, at 04:16 PM, "Samuel B. Quiring"
<email@hidden> pondered:
What is the simplest way to copy files from a directory
where they exist to a directory where they may or may
not exist? Not a move, a copy. In Unix one would type:
cp $srcDir/* $dstDir
The Finder dictionary doesn't seem to have a copy
operation. It has a duplicate operation, but I'm having
a little trouble getting that to work ("Finder error, could
not complete the operation" -- not sure why, yet)
I keep thinking that there has to be an easy way to do
this common operation, but I can't seem to find it.
I'm sure you have/will receive a few different ways of doing this and
they may be "better", at least in understanding the language. But, if
you just want over the hurdle, do what you know! Try this:
do shell script "cp $srcDir/* $dstDir"
This is assuming you're running OSX.
Dave Stewart
Aqua-flo (Goleta)
email@hidden
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.