Folder actions

I’ve noticed that Ableton, among others, saves projects within their own folders. I do the same on some of my projects, since it sometimes makes sense to save wav files / config files / metadata in separate files but place them all in the same directory.

My question is this … the Ableton “folders” will open the appropriate Ableton project when double clicked. My folders just open like any other folder. Is there a way to configure folder actions within Juce? I would like to be able to save my projects within folders, but have the OS know that when that folder is double clicked it should open it within my program.

I guess you’d have to turn the folder into a bundle, with a plist, etc… Don’t really know much about how OSX handles that kind of thing, I guess you’d need to do some research.