Paperfolder script function not removing duplicates
Posted: 17 Jul 2024 08:03
I've written a script that uses the paperfolder( ) function. The documentation says "When adding items the function takes care that no duplicates are created." That part isn't working for me. To make sure that it's not a problem in my script, I verified it with a simple one-line script in the Run Script command.
This is the script I entered in the text box in the Run Script command:
That creates a paper folder named "test1", and passes these folder names to it:
C:\3-d
C:\accel
C:\audio
C:\accel
C:\3-d
C:\3-d
C:\3-d
C:\3-d
C:\3-d
If the function removes duplicates, it should create a file named test1.txt, containing this:
but instead, test1.txt contains this:
That shows that it did not remove duplicate items.
Did I do something wrong?
I'm using XYplorer 26.00.0300.
This is the script I entered in the text box in the Run Script command:
::paperfolder("test1", "C:\3-d<crlf>C:\accel<crlf>C:\audio<crlf>C:\accel<crlf>C:\3-d<crlf>C:\3-d<crlf>C:\3-d<crlf>C:\3-d<crlf>C:\3-d<crlf>", "<crlf>")That creates a paper folder named "test1", and passes these folder names to it:
C:\3-d
C:\accel
C:\audio
C:\accel
C:\3-d
C:\3-d
C:\3-d
C:\3-d
C:\3-d
If the function removes duplicates, it should create a file named test1.txt, containing this:
C:\3-d C:\accel C:\audio
but instead, test1.txt contains this:
C:\3-d C:\accel C:\audio C:\accel C:\3-d C:\3-d C:\3-d C:\3-d C:\3-d
That shows that it did not remove duplicate items.
Did I do something wrong?
I'm using XYplorer 26.00.0300.