XY Macro Recording aka Scripting for the Newbies
Posted: 12 Oct 2013 23:35
It's widely known among forum regulars that I simply *love* XY scripting. But I'm always concerned on how the novices can take full advantage of XYplorer firepower the soonest they can.
Months ago (when I had more spare time) I tried to elaborate a way a meta-script could lead the user to either perform common actions for which s/he would be expected to write scripts but due to to her/his current lack of knowledge s/he couldn't, or to deliver a final script based on a series of questions such meta-script presented the user. My own lack of sc html knowledge compromised the project (see http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=10275 with Stefan's collaboration for some reference), so it ended into the drawer.
...but what about an XY own Macro Recording capabilities? Recent File Operations (v12.30) is a step and I think that Undo/Redo (v8.60) is another. Many actions can be triggered by just using simple sequences of command IDs (v6.80). Start XY Macro Rec, log each and every commands performed since then, give a cool interface to save such a sequence once stopped under a familiar name, a nice button to re-run last executed/recorded macro (able to run on single or multiple files and a gentle warning to prompt if original recorded action was performed on files only, folders only or files+folders but current run makes it different - basic error check, you know...) and voilá - quick scripting for the masses!
__________________
Logged command IDs could be automatically commented, making the learning easier:
#163; // Copy Here
Months ago (when I had more spare time) I tried to elaborate a way a meta-script could lead the user to either perform common actions for which s/he would be expected to write scripts but due to to her/his current lack of knowledge s/he couldn't, or to deliver a final script based on a series of questions such meta-script presented the user. My own lack of sc html knowledge compromised the project (see http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=10275 with Stefan's collaboration for some reference), so it ended into the drawer.
...but what about an XY own Macro Recording capabilities? Recent File Operations (v12.30) is a step and I think that Undo/Redo (v8.60) is another. Many actions can be triggered by just using simple sequences of command IDs (v6.80). Start XY Macro Rec, log each and every commands performed since then, give a cool interface to save such a sequence once stopped under a familiar name, a nice button to re-run last executed/recorded macro (able to run on single or multiple files and a gentle warning to prompt if original recorded action was performed on files only, folders only or files+folders but current run makes it different - basic error check, you know...) and voilá - quick scripting for the masses!
__________________
Logged command IDs could be automatically commented, making the learning easier:
#163; // Copy Here