.DS_Store manipulation and creation from node.js
Currently the implementation uses a pre-created
which it then modifies to suit the needs. This places several
limitations and also only allows creating new files from scratch.
npm install ds-store
var DSStore = require('ds-store');var file = new DSStore();
Set the background image to file specified by
file.setBackgroundColor(red, green, blue)
Set the background color to the color specified by three floats between 0 and 1.
Set the size of all icons in the folder to
file.setIconPos(name, x, y)
Position a file icon for file named
Set the Finder window position to
Set the Finder window size to
vSrn value to either
Effect currently unknown.
.DS_Store information to file at
cb will get called with
err upon file creation.
I have started work on a Buddy Allocator and B-Tree implementation,
but there is still lots of work required. Having theese would make
it easy to both read and manipulate files. It also wouldn't require
A special thanks to Wim Lewis who have written a complete implementation in perl. His documentation of the file format helped me very much.