Page 1 of 1

suggestion : opening a file from a script, after file has been moved

Posted: October 4th, 2025, 3:11 pm
by pierrelabreche
When running a script where the input file has been moved, PWP already suggests in a dialog box several useful options:
  • Select a replacement file
  • Edit Pathname
  • Change folder to
  • Change drive letter to
Issue:
The “Change folder to” field currently defaults to the last folder used. However, this may not be the correct folder—especially when both the script and its associated image have been moved together to a new location.

Suggested Improvement:
Instead of remembering the last-used folder, initialize the “Change folder to” field using a relative path based on the original location of the source image, adjusted to reflect the new location of the script.

Example:
Suppose the original image was located in X/Sources and the script was in X/Scripts. If both are moved from folder X to folder Y, then opening the script from Y/Scripts should automatically locate the image in Y/Sources by preserving the relative path between them.

Re: suggestion : opening a file from a script, after file has been moved

Posted: October 4th, 2025, 3:14 pm
by jsachs
You should be able set up a search list (Script/Search List... in the main menu) to locate the image file automatically -- just make Relative one of the search rules.

Re: suggestion : opening a file from a script, after file has been moved

Posted: October 5th, 2025, 2:03 pm
by pierrelabreche
Thank you, I will try it

Re: suggestion : opening a file from a script, after file has been moved

Posted: October 5th, 2025, 4:33 pm
by pierrelabreche
I was unaware of this script setting - it works very well, thanks !