Open standalone app from file with extension


I’m working on my standalone app made with JUCE. My app can save and restore app settings, which are saved with *.mae extension.

I associate Windows with my app, so when I find in File Explorer any *.mae file, and I double click on it, my app starts, but nothing happens (settings are not recalled).

What should I do to “tell my app” that when I double click on the *.mae file and the app starts, it should also read this file and recall settings?


It is passed as a command line argument. You can access it in your override of:

virtual void JUCEApplication::initialise (const String &commandLineParameters) = 0;


virtual void JUCEApplication::anotherInstanceStarted (const String &commandLine)=0

Works good, thanks :smiley: