Programmatically handling of the "Missing Files/Folder" dialog

I'm in the process of mass processing a large number of PXPs.

In some of them there is a path used and a notebook opened which is not present on the PC anymore. That the notebook was still open on save was a bug which is solved already since ages. But of course we have old data.

The offending parts of the recreation macro are

NewPath MIES ":::Program Files:MIES:"
// ...
OpenNotebook/N=UserConfigNB/R/W=(5.25,44.75,705,500)/V=0/P=MIES "UserConfig.txt"

Is there a way to programmatically choose "Skip this Path"/"Skip this File"? I'm loading the experiments with

Execute/P/Q LOADFILE ...

Or can I execute some code before the experiment recreation macro is called and fake the path and file?

 

The only thing I can think of to avoid the dialog is to create a file or folder where it is expected.

If you don't know this a priori then I can not think of a way to avoid the dialog.

 

I have a similar problem: thousands of pxp files that have been created with code stored in various people's computers, with other user name and other Igor versions. Then, if someone else re-opens the file on another computer, we get the "missing folder" error, asking for ~(someone):Documents:Wavemetrics:Igor Pro (6, 7, 8, 9) User Files:Igor Procedures:

Now, with Igor 9, it's double the pain because we have to click twice to cancel this pesky error message.

The solution suggested above is impractical, since there are too many computers with different users.

Is there any way to make these error messages optional ?


Quote:
asking for ~(someone):Documents:Wavemetrics:Igor Pro (6, 7, 8, 9) User Files:Igor Procedures:

If Igor is asking for a folder it is because the experiment contains a symbolic path point pointing to that folder and there were one or more items (procedure files, notebooks, wave files) used by the experiment in that folder at the time the experiment was saved.

When you open such an item, Igor creates a symbolic path for the folder if one does not already exist. When you save the experiment, Igor creates a NewPath command in the experiment recreation procedures if the referenced folders contains one or more items used by the experiment. During experiment recreation, it is this command that displays the missing folder dialog.

(This does not include files opened automatically because they are in "Igor Procedures" or opened in User Procedures and opened by #include. Igor does not create symbolic paths in those cases.)

If the folder contains no such items (i.e., you opened a notebook and then killed it), Igor creates a NewPath/Z command in the experiment recreation procedures. If the folder is missing, the /Z flag tells Igor to ignore the issue so it does not display the missing folder dialog.

So in your case, "someone" must have been other than the current user and the current user opened a file in someone's Igor Procedures folder (not the current Igor Procedures folder). This is an unusual use pattern. Perhaps there is another explanation but I can't think of it.

If Igor simply skipped missing folders, you would get follow on errors when the experiment tried to load the items referenced through that symbolic path.

I have not been able to come up with a good solution for these issues.

Quote:
Now, with Igor 9, it's double the pain because we have to click twice to cancel this pesky error message.

The second dialog asks "Do you want to skip loading all waves from this folder?" This was my attempt to lessen the pain when the missing folder contained a lot of wave files. Previously you would be asked to skip each wave file. But I can see how this is annoying when the folder contains no waves. At this point in the loading process, we don't know what the folder might contain.