Tim’s
Bandwagon

folder2dot

I’ve spent some of this morning packaging a PHP script I wrote a few months ago into a little Mac OS X application. It was at risk of going stale, so thought I’d let it out into the open for a bit of air. It’s called folder2dot. When you drop a folder onto it in the Finder it creates a ‘dot’ file that represents the item’s contents and sub-contents.

You can then render the ‘dot’ file with the Graphviz graph drawing tools (I recommend the Macintosh port of Graphviz) and you get a diagram of the dropped item’s contents and sub-contents. You might be able to open the ‘dot’ file using Omnigraffle (it supports a subset of the DOT language — I haven’t tried it yet!).

I found it handy to visualise the inventory of the files in a website I was redeveloping; it produces fairly plain output that is probably most useful as a starting-point.

One Comment

  1. I’ve just updated it to version 0.2

    • Graphs display the value of the <title> tag for files ending in ‘.html’ or ‘.htm’.
    • Can now drop multiple folders (creates one ‘dot’ file for each dropped folder).
    • Support for Growl notifications when a dot file is successfully created.
    • Smaller download.

    The next thing I want to improve is the default rendering in OmniGraffle – which isn’t good at all right now!

Leave a Comment

Your personal information

Your comment