Start NewPath dialog in specific directory
jtigor
The NewPath operation doesn't permit setting a specific directory starting location for the dialog that opens when a path is not specified. Maybe this should be a wish list item, but in the meantime is there a workaround?
Thanks,
Jeff
Apologies... I should have done my IgorExchange search first... looks like this can be handled with
PathInfo/S
Related question: Is there a way to determine where a NewPath dialog will open if PathInfo/S hasn't been specified?
September 30, 2020 at 02:29 pm - Permalink
Without the /S PathInfo returns the path to the named symbolic folder in S_path.
September 30, 2020 at 08:52 pm - Permalink
If you execute something like
NewPath testPath
the Pick a Folder dialog will open at some point in the directory tree. Is there a programmatic way to determine where that would be?
October 1, 2020 at 05:41 am - Permalink
In reply to If you execute something… by jtigor
I don't think so.
October 1, 2020 at 01:52 pm - Permalink
Just that new users reading this thread don't get confused: It is, as hinted above, possible to open a folder dialog with a specific path pre-set by calling NewPath twice and PathInfo/S in-between like so...
PathInfo/S Path
NewPath/O/Q Path
And as Howard mentioned, there is no one-line command using only NewPath to do this.
October 2, 2020 at 12:00 am - Permalink