Page 1 of 1

[Fixed] SC get incorrectly retrieve a folder's name

Posted: 30 Sep 2016 10:03
by Nolan
XY: v17.20.0100

If current item is a folder named test_NO.001 (folder name contains a dot), then executing this script:

Code: Select all

text get("curitem", "base");
will return only the part of the name before the dot:

Code: Select all

test_NO
SC get("curitemprev", "base") also has the problem.

Re: SC get incorrectly retrieve a folder's name

Posted: 30 Sep 2016 10:46
by admin
Thanks, fix comes.

Re: SC get incorrectly retrieve a folder's name

Posted: 30 Sep 2016 11:17
by bdeshi
so get('curitem') is supposed to check if the item us a folder or not?

Re: SC get incorrectly retrieve a folder's name

Posted: 30 Sep 2016 11:18
by admin
Yes, that's the only way to do it. (If "base" or "ext" is asked for.)

Re: SC get incorrectly retrieve a folder's name

Posted: 30 Sep 2016 12:49
by bdeshi
Then shouldn't you make a note in the reference that this differs from gpc()'s behavior?

Re: SC get incorrectly retrieve a folder's name

Posted: 30 Sep 2016 12:56
by admin
OK, gonna add a flag (to both).