At the behest of several Forum members am getting serious about scripting and have made modest progress.
A question about syntax. As sel 1 picks the first item what picks the last? The targets are text files in a folder already sorted by name with <date yyyymmdd_hhnnss;> appended to it. Probably prepostitioning sortby would do it but that seems like unnecessary overhead if sel alone could accomplish the task.
Help with "sel"
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Help with "sel"
Don should probably update it so that the StartfromTop argument also applies to numbers so you could use this to select the last item:Currently you can select the last item by using GetInfo as so:
Code: Select all
Sel -1,,1;Code: Select all
Sel GetInfo('CountItems');-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: Help with "sel"
Mirabile dictu, it works!Sel GetInfo('CountItems');
This could conceivably get to be fun.
-
admin
- Site Admin
- Posts: 66351
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Help with "sel"
Yo, goody!TheQwerty wrote:Don should probably update it so that the StartfromTop argument also applies to numbers so you could use this to select the last item:Code: Select all
Sel -1,,1;
FAQ | XY News RSS | XY X
XYplorer Beta Club