Help with "sel"

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Help with "sel"

Post by aurumdigitus »

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.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Help with "sel"

Post by TheQwerty »

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;
Currently you can select the last item by using GetInfo as so:

Code: Select all

Sel GetInfo('CountItems');

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Help with "sel"

Post by aurumdigitus »

Sel GetInfo('CountItems');
Mirabile dictu, it works!
This could conceivably get to be fun. :lol:

admin
Site Admin
Posts: 66348
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Help with "sel"

Post by admin »

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;
Yo, goody! :)

Post Reply