• 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
Finder replacing ask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Finder replacing ask
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Font Specification Question
  • Next by Date: Re: Finder replacing ask
  • Previous by thread: Budlat RemiEvent Reminder aliasIlocblobZ* etc.
  • Next by thread: Re: Finder replacing ask
  • Index(es):
    • Date
    • Thread