Page 1 of 1

Nested Paper Folders

Posted: 06 May 2021 23:32
by Keagel
Hey,

Is there any way to have paper folders inside paper folders? It doesn't seem like it's currently possible but maybe I'm missing something.

Thanks!

Re: Nested Paper Folders

Posted: 06 May 2021 23:48
by nas8e9
Not that I can see, but according to the help file you can have subfolders in the paper-folder:
Paper Folders can also be located in subfolders of <xydata>\Paper:
Location: paper:Sub\foo
Refers to: <xydata>\Paper\Sub\foo.txt

Re: Nested Paper Folders

Posted: 06 May 2021 23:59
by Keagel
Yeah I discovered that too, unfortunately that's not enough for what I'm trying to do. I'd like to be able to open a paper folder and have it show any paper folder inside as if they were subfolders, the final goal being the ability to create group-like functionality based on paper folders (ie. grouping by date, etc.).

Re: Nested Paper Folders

Posted: 07 May 2021 22:19
by mazot
I am not sure on what you want but thought this might go some way to it.
First off it depends heavily on Custom File Association.
the code I use is based on highend's CFA.

Code: Select all

*.pf.txt>::goto "paper:<pfaitem>"; 
As you can see Xtra ".pf".
The code to use to get pf's into a pf is simple.
Select your pf's then run following code.

Code: Select all

"From selection"
	$SelectedItems = get( "SelectedItemsPathNames", <crlf>); // gets all paths & names
        paperfolder ("paper:_XYCollectorM1.pf.txt", $SelectedItems, <crlf>);
HTH

Re: Nested Paper Folders

Posted: 08 May 2021 10:59
by Keagel
Thanks for the bit of code!
Unless I misunderstood something, that just adds the text files to a new paper folder, doesn't it?

Re: Nested Paper Folders

Posted: 08 May 2021 17:54
by mazot
Yes but because of the CFA you can launch them from inside your paper folder.
In effect you can put pf's in pf's to your hearts desire.

Re: Nested Paper Folders

Posted: 09 May 2021 00:01
by Keagel
Oh you're right, I simply forgot to rename my paper folders to .pf.txt, thanks for the help!