Finder replacing ask
Finder replacing ask
- Subject: Finder replacing ask
- From: John Mistler <email@hidden>
- Date: Thu, 3 Apr 2008 15:46:11 -0700
If a folder already contains a file named "foo" and you try to move a
file named "foo" to that folder, the Finder alerts you and asks if you
want to write over that file. I am trying to script the same behavior,
with
tell application "Finder"
move thisFile to thatFolder replacing ask
end tell
however, the alert says "an item with the same name already exists in
that location" -- Cancel
How do I get the Finder to ask if you want to write over the file?
Thanks,
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden