1
0
Fork 0
mirror of https://github.com/marty-oehme/scripts.git synced 2025-12-08 04:52:45 +00:00

added an example scrip

This commit is contained in:
Patrizio Bekerle 2017-05-16 15:52:33 +02:00
parent 2c9569282a
commit 1545a4c8a6
No known key found for this signature in database
GPG key ID: 2E9FFD770DABE838
2 changed files with 22 additions and 0 deletions

7
example-script/info.json Normal file
View file

@ -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'"
}

View file

@ -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.");
}
}