Re: duplicating files
Re: duplicating files
- Subject: Re: duplicating files
- From: Michelle Steiner <email@hidden>
- Date: Tue, 9 Jan 2001 12:37:50 -0800
On 1/9/01 12:24 PM, Stephen Gross <email@hidden> wrote
>
I would like to know how to deal with overwrite errors. Here's my code:
>
>
=====
>
tell application "Finder"
>
duplicate file1 to location2 with replacing
>
end tell
>
=====
>
>
The problem is that if it does indeed need to replace an existing file,
>
I get a dialog box popping up asking for the confirmation. Is there a
>
way I can avoid this?
I just tried it, and it worked just fine. If I omit "with replacing" I
get an error. In neither case, though, did I get a confirmation dialog.
Mac OS 9.0.4 with AS 1.4.3
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------