diff --git a/example-script/info.json b/example-script/info.json new file mode 100644 index 0000000..dd3549e --- /dev/null +++ b/example-script/info.json @@ -0,0 +1,7 @@ +{ + "name": "Example script", + "identifier": "example-script", + "script": "example-script.qml", + "version": "0.0.1", + "description" : "Use this script to start a new script you want to submit to the script repository.\\n\\nJust copy the whole 'example-script' folder and rename it and also the 'example-script.qml'" +} diff --git a/example-script/paste-latex-image.qml b/example-script/paste-latex-image.qml new file mode 100644 index 0000000..f16a265 --- /dev/null +++ b/example-script/paste-latex-image.qml @@ -0,0 +1,15 @@ +import QtQml 2.0 + +/** + * This script is just an example of how to use scripts + * Visit http://docs.qownnotes.org/ for more information about scripting + */ +QtObject { + /** + * Just show some log entries when the script is initialized + */ + function init() { + script.log("This is just an example script."); + script.log("Visit http://docs.qownnotes.org/ for more information about scripting."); + } +}