Re: Finder Renaming Unpleasant Surprise
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