If I'm reading this right that only lets you set the application name, not a specific profile inside the browser.
And that file is a shell (or python) script that runs whatever you need - for example that "open" command with profile argument. Or for a more complex setup, it can check the URL and use different profile depending on URL.