AirDrop uses "wrong" file name for duplicate file

I have a macOS App that uses a custom file format (XML based). It is properly in the Info.plist as a file format so that my App is launched when this custom file type is double clicked etc etc. All that has been working fine for awhile now.

If I use Finder and duplicate one of these custom files, it does the right thing and creates a "File 2.customxml" file, keeping the file extension intact.

But if I AirDrop one of these files to another Mac and there is already a file of the same name in the Downloads folder, it creates the file "File.customxml 2" instead of "File 2.customxml". And of course there is no Application registered to open a file of type ".customxml 2". If a user clicks "Open" in the AirDrop popup, my App is opened with this file the first time, but not opened or informed the second time and instead it falls to another App, eg: TextEdit

Is there anyway I can get AirDrop to do the "right" file naming? (This is all between 2 Macs)

Just to clarify, is your app installed on the destination Mac? And if, on the destination Mac, you duplicate a .customxml in the Finder, does it do the right thing?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Just to clarify, is your app installed on the destination Mac?

Yes

And if, on the destination Mac, you duplicate a .customxml in the Finder, does it do the right thing?

Yes. In the "regular" way so the first duplicate is "... copy.customxml" and then subsequent are "... 2.customxml"

And for further clarification, the first time the file is AirDrop'd, it has the correct extension and my App is invoked on the destination Mac. It's just the subsequent transfers of a file of the same name where I can see the file name is ".customxml 2" in the Downloads folder and my App is not invoked.

I suspect there is nothing I can do about it, but it does seem weird and "wrong" to have Finder and AirDrop do different things. Thanks for your time.

I suspect there is nothing I can do about it, but it does seem weird and "wrong" to have Finder and AirDrop do different things.

I agree; this is definitely bugworthy.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

OK done: FB9126563

Thanks.

AirDrop uses "wrong" file name for duplicate file
 
 
Q