dropping files onto the dock icon (mac)

Hi All

I’ve been working on an oF app that edits a certain kind of file. It would be awesome if I could drop a file onto my app’s icon in the dock to open it. I’ve been trying to work out how to do this, but haven’t had any success so far. Any ideas of where to look/any examples around?

I’ve got a few other bits and pieces that I could roll together with this to make an addon or example for making document-based apps in oF.

cheers

Marek