Re: move theFile to thePath replacing no
Re: move theFile to thePath replacing no
- Subject: Re: move theFile to thePath replacing no
- From: John Delacour <email@hidden>
- Date: Fri, 25 Jul 2003 11:56:46 +0100
- Mac-eudora-version: 6.0a28
At 4:49 am -0400 25/7/03, Gary Lists wrote:
Append a file name? What does that mean? Do you want to add the content of
one file to another file?
The 'replacing no' means without replacing.
If you want one file to _overwrite_ another with the same name then that
_would be_ replacing the file. Remove that phrase if you want that
behaviour.
It's not enough to remove the phrase. He must write 'with replacing' :
set f1 to ("" & (path to "docs") & "junk___.txt") as file specification
set f2 to ("" & (path to "desk") & "junk___.txt") as file specification
repeat with f in {f1, f2}
open for access f
close access f
end repeat
(*
tell app "Finder" to move f1 to desktop
--> Finder got an error: An item with the same name already exists in
the destination.
*)
tell app "Finder" to move f1 to desktop with replacing
JD
.
_______________________________________________
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.