Silent Substitution
To see the magic simply open TextEdit, create a new document (if you are not already presented with one) and add the following text to the document:
watch: this: space:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx7-3MD8Tduglue5ksLV6lH78gNFPhU6_nD-uSmXoIG3-y7ESfEaZ3ErNZlY8o-2J5FoZeIlAgzxKze2ssShAF8GiJvB_kvb4xmVSOCmQl7Uki99W50VC9QDMT5YhajcMMfnIk-D3usuQ/s320/textedit.png)
Now, select the text, copy it and save the file with the selected text as the file name.
Et voilĂ !
Subterfuge Uncorked
The dialog magically converts the colons to hyphens (-) to ensure that you don't have to go through he whole 'This filename is not allowed' error cycle needlessly. Brill.
The reason for the substitution is that OS X prohibits the use of colon characters in file/directory names because this character is used to represent a directory in the HFS+ file system.
According to the HFS+ spec you can use any Unicode or ASCII (including NUL) characters. OS APIs may limit some of these characters for legacy reasons.
I love subtlety.
No comments:
Post a Comment