Why can't I use a colon when naming / renaming my file on my iMac?

I am trying to save a file with a colon in the file name as directed by a professor. Colon works everywhere else.


[Re-Titled by Moderator]

MacBook Air 13″, macOS 14.6

Posted on Aug 26, 2024 10:00 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 26, 2024 2:53 PM

The Apple filesystem HFS naming nomenclature for file paths uses colons as path separators, so entering a colon in a filename in the Finder will immediately change that color to a forward slash. The latter is the UNIX file separator that one encounters on the UNIX command line in the Terminal application.


It is wise to use '_' or '-' for filename punctuation in macOS to be compatible with the Finder and UNIX shell file naming conventions.

2 replies
Question marked as Top-ranking reply

Aug 26, 2024 2:53 PM in response to SuddenChange

The Apple filesystem HFS naming nomenclature for file paths uses colons as path separators, so entering a colon in a filename in the Finder will immediately change that color to a forward slash. The latter is the UNIX file separator that one encounters on the UNIX command line in the Terminal application.


It is wise to use '_' or '-' for filename punctuation in macOS to be compatible with the Finder and UNIX shell file naming conventions.

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.

Why can't I use a colon when naming / renaming my file on my iMac?

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