• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: duplicating files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: duplicating files
  • Next by Date: Re: Disappear Applescript - again
  • Previous by thread: Re: duplicating files
  • Next by thread: Re: duplicating files
  • Index(es):
    • Date
    • Thread