Folder named XYZ.Service changes name to XYZ.Service.app

If I create a folder, from a terminal window, named 'Something.Service', when I look at it in Finder it's called 'Something.Service.app'. So, running the following produces an error and leaves the folder in a bad state.

mkdir Bob.Service
cd Bob.Service
open .


Produces the following error

The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10827 "kLSNoExecutableErr: The executable is missing" UserInfo={_LSLine=3845, _LSFunction=_LSOpenStuffCallLocal}


If I run `xattr` I don't see any attributes so something else is stepping in here. Has anyone seen this and have any idea how to stop it? It's happening on both Monterey and Big Sur.


MacBook Pro 15″, macOS 12.3

Posted on Apr 20, 2022 3:57 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 20, 2022 4:40 PM

Don't use the ".Service" part. That seems to be triggering some internal setting to display this folder as some kind of service app. What you see in the Finder these days may not represent reality. When you do "open .", you are telling the Finder to perform the default action, which it thinks is running the service app. It can't do that, so it throws that error.

Similar questions

5 replies
Question marked as Top-ranking reply

Apr 20, 2022 4:40 PM in response to Michaeljon

Don't use the ".Service" part. That seems to be triggering some internal setting to display this folder as some kind of service app. What you see in the Finder these days may not represent reality. When you do "open .", you are telling the Finder to perform the default action, which it thinks is running the service app. It can't do that, so it throws that error.

Apr 20, 2022 4:45 PM in response to etresoft

I'd love to but as a developer sometimes my directory names really describe a component of my application(s). In this case the .Service part is telling the rest of the team that this is, well, a service. I guess I hadn't noticed this until today because I normally don't need to 'open .' from that location. But, today was the first time I noticed Finder show me a different name and icon even though this particular application has been in development for about 15 months.

Apr 20, 2022 8:00 PM in response to MrHoffman

Thanks all. While I'd like to change the name of the directory that's not really possible. Sometimes our programming languages and architectural standards force naming conventions. This is one of those and we have developers working on this same application across several other operating systems too.


I was more surprised by it than anything. As I'd mentioned this code base has been around for quite a while and somehow I'd never noticed. I don't know how I'd not had to open Finder from inside that directory before nor do I understand why I hadn't seen it from its parent before. Probably because I live at the command line 99% of the time.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Folder named XYZ.Service changes name to XYZ.Service.app

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.