Saturday, July 4, 2020

#26 2020-04-24 12:31:52 pm

Registered: 2019-03-03
Posts: 1259

Re: Why Doesn't This Code Work?

Yvan Koenig wrote:

And what I see doesn't match KniazidisR's statements (but am'I really surprised by that?).

I made a mistake in my testing. I tried giving the folder an extension and tried to trick Finder or System Events hiding the extension. So, I gave the wrong information - I "can deceive" System Events, not Finder. That is, the opposite is true. Just the System Events takes the text after the dot as name extension, is it hidden or now. Testing the same with file, both Finder and System Events returns trust result.

That is, it is better not to argue about name extensions with Finder. roll Makes sense to delete my previous post so as not to mislead users anymore. It turns out that not this Finder behaviour is harmful to health, but namely my previous post...

Yvan Koenig wrote:

(*visible name is 2018-11-23 Taxe habitation Roquesteron.pdf, theNewArt is SSD 1000:Users:**********:Documents:Important:ƒ banque:2018-11-23 Taxe habitation Roquesteron.pdf.JPG

Don't forget I don't apply this new name to the real file yet. So, it is true.

Last edited by KniazidisR (2020-04-24 01:12:00 pm)

Model: MacBook Pro
OS X: Catalina 10.15.4
Web Browser: Safari 13.1
Ram: 4 GB



#27 2020-04-24 06:11:51 pm

Shane Stanley
From:: Australia
Registered: 2002-12-07
Posts: 6395

Re: Why Doesn't This Code Work?


The database (part of Launch Services) is not maintained by the Finder -- it is consulted by the Finder -- that's how it knows what application to use when you double-click on a document.

Your characterisation of other approaches as lazy is incorrect: it's a deliberate policy. Extensions are defined variously in system documentation as that text that follows the last . in a file name. They are not limited to those registered in a user's Launch Services database.

Last edited by Shane Stanley (2020-04-24 06:37:44 pm)

Shane Stanley <>



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)