If you select some text in an app (e.g. Chrome or any other app which allows dragging text), and drag the selection to a Finder panel, then a file will be created in the panel with an invisible
.textClipping extension. The extension might or might not be visible in Finder depending on your settings.
Originally I assumed that the file is plain text, and tried renaming it to add a
.txt extension, yet double-clicking still opens it with Finder.
Then I checked the file type:
file 'some text.textClipping' >> some text.textClipping: Apple binary property list
cat-ing it shows a header of
bplist00?XUTI-Data? followed by readable text.
mv 'some text.textClipping' 'some text.txt'
but even after this it still opens with Finder and not the associated app for the
Another 'oddity' is that dragging a .textClipping file into the terminal — which I sometimes use as a way of inserting the full path — has the unexpected effect of inserting the contents of the file rather than its path.
I wish I could use
.textClipping files to quickly create snippets from web pages and other apps, but for obvious reasons, I want to avoid the snippets being stored in some Apple proprietary binary format.
Is there a way to convert the snippets to a portable format, such as plain text? How come that this type of files behave differently from others? Is there is some extended file property? Then how to remove it so that the files stop being 'special'?