For debugging purposes it would be nice if the audio plugin host automatically opens the file in the commandLine.
[code] void initialise (const String& commandLine)
{
// initialise our settings file…
ApplicationProperties::getInstance()
->setStorageParameters (“Juce Audio Plugin Host”,
“settings”, String::empty, 1000,
PropertiesFile::storeAsXML);
commandManager = new ApplicationCommandManager();
AudioPluginFormatManager::getInstance()->addDefaultFormats();
AudioPluginFormatManager::getInstance()->addFormat (new InternalPluginFormat());
mainWindow = new MainHostWindow();
//mainWindow->setUsingNativeTitleBar (true);
commandManager->registerAllCommandsForTarget (this);
commandManager->registerAllCommandsForTarget (mainWindow);
mainWindow->menuItemsChanged();
if (commandLine.isNotEmpty())
{
mainWindow->getGraphEditor()->graph.loadFrom(File(commandLine),true);
};
}
[/code]