Terminal Command - TextEdit.app does not exist....

Any clue?


MacBook Pro 13″, macOS 13.7

Posted on Apr 9, 2025 10:41 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 9, 2025 12:25 PM

For a start, TextEdit.app isn't in /Applications, so your path is incorrect. It's actually in /System/Applications since it's part of the standard MacOS application set.


To overcome this, open has a standard method to find applications using the -a switch:


open -a TextEdit /path/to/some/file


This will use the standard system routine for finding an application and open the specified document in that app. You should only use the application path if you want to override the system. If you're trying to edit a text document, you can use:


open -e /path/to/some/file


which uses the system default text editor, again without needing to know its path.


HOWEVER, even with all that, if you're trying to edit that file you're doomed to failure since, by default, TextEdit won't edit system-related files (lack of permissions). You'll be OK if you're just looking at the file, but any changes won't be written back to that source. Even though you're using sudo to open the file, it won't save that file.

11 replies
Question marked as Top-ranking reply

Apr 9, 2025 12:25 PM in response to kstrid

For a start, TextEdit.app isn't in /Applications, so your path is incorrect. It's actually in /System/Applications since it's part of the standard MacOS application set.


To overcome this, open has a standard method to find applications using the -a switch:


open -a TextEdit /path/to/some/file


This will use the standard system routine for finding an application and open the specified document in that app. You should only use the application path if you want to override the system. If you're trying to edit a text document, you can use:


open -e /path/to/some/file


which uses the system default text editor, again without needing to know its path.


HOWEVER, even with all that, if you're trying to edit that file you're doomed to failure since, by default, TextEdit won't edit system-related files (lack of permissions). You'll be OK if you're just looking at the file, but any changes won't be written back to that source. Even though you're using sudo to open the file, it won't save that file.

Apr 11, 2025 3:09 AM in response to kstrid

Are you using anything called "CloudReach"?


Automated translation says that "Enhetsregistrering Cloudreach Inc. kan ställa in din Mac automatiskt." is Swedish for "Device Registration Cloudreach Inc. can set up your Mac automatically."


If the message was Swedish for "Your iCloud has been hacked!!!" or "You have 5 Trojan viruses!!! Remove viruses now!!!", it would clearly be a scam, sent by criminals. This message may be a scam, too – but seems worded a bit differently than the usual ones.

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.

Terminal Command - TextEdit.app does not exist....

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