• 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: "S. J. Cunningham" <email@hidden>
  • Date: Sat, 14 Jan 2017 01:14:00 -0500

On Jan 13, 2017, at 10:50 PM, Christopher Stone wrote:

> 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.”

Yeah, some other people said the same thing.  Looks like it was fixed in a later release than I have.  Meanwhile I just wrote a handler to check first.

Steve
------------------
OS X 10.6.8, AppleScript 2.1.2


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

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