I have written a little program for OSX using Juce. When I start it by opening the .app file it displays a file dialogue and then processes the selected file correctly. I want to also be able to start it by opening a file in finder and have the file association start my program on the selected file. I can set an association and have it start my program but it does so without supplying any command line parameters. How does one find out which file was opened in finder?