• 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: Moving files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving files


  • Subject: Re: Moving files
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 17 Jan 2003 12:39:32 -0800

On 1/17/03 11:45 AM, "Steve Suranie" <email@hidden> wrote:

> I have a script which validates and moves files from a users hard drive to a
> server. All works fine except for when the files are moved a copy appears in
> the trash. I checked the script and no where in it do I use the move to trash
> command. I am using "with replacing" when I move the files
>
> move file thisItemPath to dstFolderPath with replacing

There is really no such thing as 'moving'. 'moving' is duplicating to
another location and then deleting the original. In many situations, the OS
will do this behind the scenes so you never notice. But in 'moving' from one
disk to another, it is explicit: in fact you can't 'move' from one disk to
another in the UI, you can only duplicate, when you drag a file to a
location on another disk. There were some oddities in a few earlier versions
of OS 10.0.x-10.1.x, but somewhere along the way this was also restored to
AppleScript. I guess that the 'with replacing' parameter allows you to
remove the original by putting it in the trash, yes.

--
Paul Berkowitz
_______________________________________________
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.

  • Follow-Ups:
    • Re: Moving files
      • From: Chris Page <email@hidden>
  • Prev by Date: Re: Why does the Script Editor Service do this?
  • Next by Date: Re: Shell scripts
  • Previous by thread: Moving files
  • Next by thread: Re: Moving files
  • Index(es):
    • Date
    • Thread