Page 1 of 1

Help with "sel"

Posted: 30 Aug 2010 15:47
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.

Re: Help with "sel"

Posted: 30 Aug 2010 16:11
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');

Re: Help with "sel"

Posted: 30 Aug 2010 16:42
by aurumdigitus
Sel GetInfo('CountItems');
Mirabile dictu, it works!
This could conceivably get to be fun. :lol:

Re: Help with "sel"

Posted: 30 Aug 2010 17:07
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! :)