Add directory support (#2672)

This commit is contained in:
Patrizio Bekerle 2022-11-23 16:52:59 +01:00
parent 8a25a89d8f
commit edb063d85d
4 changed files with 31 additions and 5 deletions

View file

@ -12,6 +12,7 @@ Script {
property string myText;
property int myInt;
property string myFile;
property string myDirectory;
property string mySelection;
// register your settings variables so the user can set them in the script settings
@ -56,6 +57,13 @@ Script {
"type": "file",
"default": "pandoc",
},
{
"identifier": "myDirectory",
"name": "I am a directory selector",
"description": "Please select the directory:",
"type": "directory",
"default": "/home",
},
{
"identifier": "mySelection",
"name": "I am an item selector",
@ -80,6 +88,7 @@ Script {
script.log(myText);
script.log(myInt);
script.log(myFile);
script.log(myDirectory);
script.log(mySelection);
}