In v10.5b1 there was a specific feature added: “when creating shortcut to scripts, optional data can now be passed…
With this, a script can have custom parameter per item that don’t need to be stored in a tag, or included in the code as config.
However, now that I discovered it and I want to use this feature, it is still hard to use: you can only use it from ‘launch a shortcut, lightning, run script’, if you use the normal ‘run script’ that dialog is not showed [Even thought it is possible: you can set it as a custom EventHandler from a script]
There is another old suggestion: when choosing a script to run, show only the list of scripts, not the whole script editor.
So, Pierre Hébert, my suggestion is:
How difficult will be to have a custom dialog with:
Title: “Choose a script”
Drop down list with the list of scripts (the same one as in the script editor)
The ‘extra data passed, leave blank if not used’ text
A text box where to add the extra data
(Optionally: a checkbox to show/hide that two last items)
A cancel button and a accept button.
This will improve the mentioned feature, and people will understand better how to choose a script (pressing back to accept is, sorry, not obvious :/ )
Note: I know you said you will be busy, but I hope you can add this to the to-do list 🙂 (and I hope this is easy enough to do it at once, but I don’t know)
]]>
< ![CDATA[
That’s right. With a third button “New script”, maybe, not sure. That’s not difficult (fortunately Android makes a lot of things easy!) but still everything is linked with the time I can allocate on the project… All ideas are stored in a TODO list, even if too many of them are gathering dust.
]]>
< ![CDATA[
The new script button idea is a good one too.
And also, the dialog may need to save the previous selected script, now with the editor as selector it’s very helpful that you don’t need to select the same script each time if you need to set it in more than one place consecutively.
]]>