• 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: Finder Renaming Unpleasant Surprise
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder Renaming Unpleasant Surprise


  • Subject: Re: Finder Renaming Unpleasant Surprise
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 13 Jan 2017 21:50:34 -0600

On Jan 13, 2017, at 08:57, S. J. Cunningham <email@hidden> wrote:
So I have been counting on the Finder to throw an error if I try
to rename a file to a name which already exists in the same folder.
But it appears that is not what happens.  It simply silently ignores
the rename command.  I am I missing something?  This doesn't seem right.


Hey Steve,

Your code throws the expected error for me on macOS 10.12.2.

“Error -48: The operation can’t be completed because there is already an item with that name.”

--
Best Regards,
Chris


 _______________________________________________
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 Renaming Unpleasant Surprise
      • From: "S. J. Cunningham" <email@hidden>
References: 
 >Finder Renaming Unpleasant Surprise (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: Coercing ligatures to expanded characters
  • Next by Date: Calculate Current Year Quarter with Time Zone Using AppleScriptObjC
  • Previous by thread: Finder Renaming Unpleasant Surprise
  • Next by thread: Re: Finder Renaming Unpleasant Surprise
  • Index(es):
    • Date
    • Thread