A Tale of Two Path Separators
macOS supports two path separators—slash (/) and colon (:)—due to its heritage from both the Unix-like NeXTSTEP system and the classic Mac OS HFS+ file system, which used colons. As a result, files that appear to have slashes in their names in Finder actually contain colons at the system level, and tools like ls display them with colons instead; this dual separator system persists for compatibility despite macOS transitioning to APFS in 2017. AppleScript commonly uses colon separators reflecting its classic Mac origins, while POSIX-style paths with slashes are used in Unix contexts, illustrating macOS’s translation between the two conventions.






