A given folder's Finder sort attributes appear to actually be stored in its parent folder's .DS_Store
. So if you're interested in modifying sorting of the contents of /Applications/MyApp/
, you'll need to adjust the contents of /Applications/.DS_Store
.
For example, if I diff hexdumps of /Applications/.DS_Store
after changing the sorting of /Applications/MyApp
from 'name' to 'none', I get this:
@@ -42,8 +42,8 @@
00000600 00 00 00 23 40 59 00 00 00 00 00 00 23 40 28 00 |...#@Y......#@(.|
00000610 00 00 00 00 00 23 3f f0 00 00 00 00 00 00 10 00 |.....#?.........|
00000620 23 3f f0 00 00 00 00 00 00 23 00 00 00 00 00 00 |#?.......#......|
-00000630 00 00 23 00 00 00 00 00 00 00 00 08 09 54 6e 61 |..#..........Tna|
-00000640 6d 65 09 23 40 48 00 00 00 00 00 00 00 08 00 25 |me.#@H.........%|
+00000630 00 00 23 00 00 00 00 00 00 00 00 08 09 54 6e 6f |..#..........Tno|
+00000640 6e 65 09 23 40 48 00 00 00 00 00 00 00 08 00 25 |ne.#@H.........%|
00000650 00 3b 00 47 00 50 00 65 00 74 00 8b 00 97 00 a3 |.;.G.P.e.t......|
00000660 00 b0 00 c5 00 d3 00 dd 00 ef 00 f8 01 01 01 0a |................|
00000670 01 13 01 1c 01 1e 01 27 01 30 01 39 01 3a 01 3b |.......'.0.9.:.;|
Unfortunately there doesn't seem to be any good documentation on the .DS_Store
file format, nor do there seem to be any command-line utilities for modifying it.