Page 2 of 4
Re: Default Directory locations
Posted: Mon May 23, 2016 1:35 am
by RJHollins
hmmm ...
OK ... could you try one experiment ??
1. Save it off as an EXE.
2. Change to different file and directory.
3. close app
4. Reload APP ... is it still the Last Directory ??
Thanks T ... this is driving my crazy.

Re: Default Directory locations
Posted: Mon May 23, 2016 3:17 am
by tulamide
I don't need to test that series: It won't be the last. You have to save it on exiting the application, and load back in on starting the application.
Re: Default Directory locations
Posted: Mon May 23, 2016 5:32 am
by RJHollins
OK ... this is a new type of function for me with FS. I thought that Sample/Hold would do just that ...
From your description, is the only way to do this is by storing the path string to disk ?
Is it possible that the Preset Manager could be employed to save this internal to the app ?
So specific ... the ONLY way is to Save to disk, and then AUTOLoad on startup ?
Please bare with, as I'm having to learn new stuff here.
Thanks T for guiding me on this ... appreciated.

Re: Default Directory locations
Posted: Mon May 23, 2016 1:12 pm
by tulamide
RJHollins wrote:So specific ... the ONLY way is to Save to disk, and then AUTOLoad on startup ?
Yes.
That's how all the executables work, if they want to store settings that they want to use on the next start up. Mostly they use %APPDATA% for it.
Re: Default Directory locations
Posted: Mon May 23, 2016 3:57 pm
by RJHollins
That's how all the executables work
Thanks Tulamide for taking the time, and your help.
Much appreciated.

Re: Default Directory locations
Posted: Tue May 24, 2016 2:08 am
by RJHollins
aaaaaaggggggggg .... still no joy in 'default location' land
... even my 2nd example posted doesn't work as expected.
It can't be this hard ... could it !!!
I'm using 2 separate FileDia prims. 1 for 1st location, the other for the 2nd.
I'm not doing ANYTHING but testing this directly in FS ... Even though the directories data are different, after setting the 2nd dialog, going back to the first is defaulting to the 2nd location
In the schematic, I can see the correct 'pre' string feeding the default parameter ... but the dialog does not open to that. This is so strange.
note ... I run as Total Administrator, so there are no file restrictions [if that even matters to this issue].
To be sure ... I'm NOT running inside my project. I'm doing only a test of the 2nd example. What the devil can I be over-looking

Re: Default Directory locations
Posted: Tue May 24, 2016 2:37 am
by RJHollins
to highlight more ...
With the FileDia prim:
Feed the String output, 'Chosen File Path' into the FLDR input [default filename with ext].
NOTE: if you only use 1 FileDia in the test ... YES, it will continue to locate to the correct location. as expected.
Now ... make a second example. [so now we have 2 separate modules independent from each other.
Locate the 2nd module to a DIFFERENT location than the first.
Now go back and check module 1. The location has now changed to the 2nd [last chosen] location.
ok. I don't know why or how to fix.

Re: Default Directory locations
Posted: Tue May 24, 2016 7:16 am
by RJHollins
This is crazy ...
So, as I research this issue, I'm searching this forum and locate a post by Tulamide with an example 'Path_splitter'.
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=3624&p=19896&hilit=filename#p19896For grins

I download and test. Works nice [though I thought I had this already in my toolbox [THANK-YOU].
But even more interesting ... I test the simple concept of force-feeding selected path BACK INTO as a default. Including one for SOURCE, and one for DESTINATION.
..... it WORKED.
the exact SAME thing I've been fighting with, now just plain worked.
Before I get to happy, and give any impression that 'Youse Guys' won't be hearing from me again ... [cause who else do I have to ask]
I'm going to test this in my project with a clean slate.
fingers-crossed

Re: Default Directory locations
Posted: Thu May 26, 2016 2:28 am
by RJHollins
OK ... had a bit of time to work on this little Utility project.
It generally is working, but not totally de-bugged.
?Question? In using the FileDialog prim, I'm trying to select a empty FOLDER. The problem is, because its empty, I can't select it
To clarify. This FOLDER is a Destination location to store files created by this utility. As a temp solution, I've stuck a text file in the folder to select ... then I can capture the PATH. [a lame solution that's working] ... but what is the correct way to do this ?
Thanks.

Re: Default Directory locations
Posted: Thu May 26, 2016 1:38 pm
by Jay
Not sure if there is a better way to do it RJ but that has always been the way its done with synthmaker/flowstone afaik
