2 ms·
Go in the Finder and try to change a file name to have a colon. macOS will tell you it can’t do it. Now change it to have a forward slash. macOS will happily a
by latexr 4y ago
Go in the Finder and try to change a file name to have a colon. macOS will tell you it can’t do it.
Now change it to have a forward slash. macOS will happily abide.
Finally, look at that file’s path in a terminal. Where the Finder shows a forward slash, the terminal will show a colon.
Redoing the AppleScript example:
$ osascript -e 'POSIX file "/tmp/file with : forward slash.txt"'
=> file Macintosh HD:private:tmp:file with / forward slash.txt