A user double-clicks a preset file in the Finder, it starts the standalone version of my plugin. How do I find out the file they were trying to load?

When a user double-clicks a preset file in the Finder, it starts the standalone version of my plugin (as it should). How do I find out the file name of the file they were trying to load?

I found another thread that said you can retrieve it from the anotherInstanceStarted function, but that function is within StandaloneFilterApp, which is part of JUCE, and which I am not subclassing. I’m basically looking to be able to retrieve that file name from the processor on the way in.

I think this is where you need to be looking : https://docs.juce.com/master/classJUCEApplicationBase.html#a61eedb3499aba883c3e4822a6c2c8973

It’s unlikely you’ll be able to avoid subclassing StandaloneFilterApp anyway to be able to get at that though.

1 Like

I think JUCEApplicationBase::getCommandLineParameterArray() could be what you are looking for

1 Like