• 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: Duplicate with replacing and a full trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Duplicate with replacing and a full trash


  • Subject: Re: Duplicate with replacing and a full trash
  • From: "Marc K. Myers" <email@hidden>
  • Date: Fri, 07 Dec 2001 11:12:19 -0500
  • Organization: [very little]

> Date: Fri, 07 Dec 2001 07:51:16 -0600
> From: "John Tuttle" <email@hidden>
> To: email@hidden
> Subject: Duplicate with replacing and a full trash
>
> A curious situation that I'm sure someone has run across.
>
> I've written a short script which duplicates a large folder of files to an
> external hard drive. I use the following AppleScript code:
>
> Tell app "Finder"
> Select folder "My Drive:My folder"
> Duplicate selection to folder "External Drive:External Folder" with
> replacing
> End tell
>
> It works just dandy save for the fact that the replaced file gets placed in
> the trash and I then have to empty the trash. Not such a big deal but this
> does not occur if I dragged the folder to the external drive by hand and
> select the replace option when the dialog pops up.
>
> Any takers?

Both the dialog and putting the replaced file in the trash serve the
same purpose: to give you a chance to back out if you've made a mistake.
If you want to avoid emptying the trash I suggest you use the
"deleteFile" command from Jon's Commands. With the appropriate
parameters it deletes bypassing the trash and without warnings.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[12/7/01 11:11:32 AM]


  • Prev by Date: RE: [OT] Outsourcing
  • Next by Date: Re: AS Click Counter
  • Previous by thread: Duplicate with replacing and a full trash
  • Next by thread: Re: Duplicate with replacing and a full trash
  • Index(es):
    • Date
    • Thread