Re: copying a list of files
Re: copying a list of files
- Subject: Re: copying a list of files
- From: Jolly Roger <email@hidden>
- Date: Wed, 14 Feb 2001 14:01:21 -0600
- Replyto: email@hidden
on 2/14/2001 7:07 PM, Edmond Cho (email@hidden) wrote:
>
copy filelist to folder f
>
or
>
copy {filelist} to folder f
>
>
instead of copying the list of files, it sets the variable filelist to the
>
value of the alias f.
>
>
What am I missing about this? I can get it to work by a repeat loop, copying
>
each item in filelist, but I thought it might work faster by passing the
>
whole list at once to the copy operation.
Hi Edmond,
The AppleScript "copy" command is not the same as the Finder's "duplicate"
command. The copy command is functioning exactly as it should. If you want
to duplicate or move files, you must use the Finder or a scripting addition
to do it.
Drag the Finder icon over your script editor to see the "duplicate" command
syntax:
duplicate : Duplicate one or more object(s)
duplicate reference -- the object(s) to duplicate
[to location reference] -- the new location for the object(s)
[replacing boolean] -- Specifies whether or not to replace items in
the destination that have the same name as items being duplicated
[routing suppressed boolean] -- Specifies whether or not to
autoroute items (default is false). Only applies when copying to the system
folder.
Result : reference -- to the duplicated object(s)
HTH
JR