mirror of
https://github.com/pbek/QOwnNotes.git
synced 2025-06-29 05:19:55 +00:00
.. | ||
absolute-media-links.qml | ||
example.qml | ||
execute-command-after-note-update.qml | ||
note-text-from-5pm-mail.qml | ||
README.md |
QOwnNotes Scripting
- you may need to restart QOwnNotes to let changes in a script take action
- if you need access to a certain functionality in QOwnNotes or have questions or ideas please open an issue on the QOwnNotes issue page
Methods and objects QOwnNotes provides
Starting an external program in the background
Parameters
/**
* QML wrapper to start a detached process
*
* @param executablePath the path of the executable
* @param parameters a list of parameter strings
* @return true on success, false otherwise
*/
bool startDetachedProcess(QString executablePath, QStringList parameters);
Usage in QML
script.startDetachedProcess("/path/to/my/program", ["my parameter"]);
Getting the path of the current note folder
Parameters
/**
* QML wrapper to get the current note folder path
*
* @return the path of the current note folder
*/
QString currentNoteFolderPath();
Usage in QML
var path = script.currentNoteFolderPath();