This little script will popup a menu listing all your script files, allowing you to chose which one to edit. In order to work all your script files must be located under a subfolder "Scripts", or you'll have to change the location used ("<xypath>\Scripts"), and must be called *.xys, or you'll have to change the selection filter ("*.xys").
Code: Select all
"Edit: List All Script Files..."
// Open New Tab
#340;
// goto folder
goto "<xypath>\Scripts";
sortby name, a;
sel 1,0;
selfilter "*.xys";
// Copy Item Path/Name(s)
#101;
set $script, <clipboard>;
// Close Tab
#351;
regexreplace $script, $script, "^(.+)\\(.+)\.xys$", """Edit $2"" open ""$1\$2.xys"";";
load $script,,s;And if you don't want to use any associations, you can also specifiy the app to start, with the script file as parameter, in the generated script (on the regexreplace command)
Here's an example of that, using notepad :
Code: Select all
regexreplace $script, $script, "^(.+)\\(.+)\.xys$", """Edit $2"" open """"notepad"" $1\$2.xys"";";
XYplorer Beta Club