OpenCOR has its own URI scheme, which gets registered the first time OpenCOR is run. The scheme takes the form:
It can be used in a Web browser, as well as in a Web document (e.g., the Plugins page).
command are case insensitive while it depends on the command when it comes to
For a command to be executable, no modal dialog must be active in OpenCOR.
The following commands are supported by OpenCOR itself:
openAboutDialog: open the About dialog.
opencor://importFiles//home/user/file1|/home/user/file2 to import
opencor://importFiles/https://my.domain.com/file1|https://my.domain.com/file2 to import
opencor://openFile//home/user/file to open
opencor://openFiles//home/user/file1|/home/user/file2 to open
opencor://openFiles/https://models.physiomeproject.org/.../cell-model.xml|https://models.physiomeproject.org/.../cell-model.sedml to open
As hinted above, a command can be sent to a given plugin. For example, we can ask the Core plugin to select a particular mode or view.