You could use Insert File to insert the files with the "by reference" option specified.
Then double clicking the container field or the Go to field [Select... script step should open the file.
Just make sure that you use insert file with store a reference to insert the file and don't optimize the field for interactive content, nor specify external storage for the container field.
You can set up a table of records with one container field for each file and then just add another record and insert the file reference each time you need to open another file.
Phil, partially the process was successful, but not fully.
I have looped and inserted references to all my local files, so now they are in the container.
When I double click on the container, it opens the local file. Of course, that is not the best way for me. The best would be to use a script step. The one you referred to is not doing the magic. When I set Go to field (and I select the container), with select/perform checked in the script step, nothing happens, no error, no open file.
What I might be doing wrong. Have in mind, double clicking opens the file, so the reference is there and it's active.
That script step should work. Was the field physically present on the current layout when the step executed?
Yes it is, the script goes into it but it's not executing the opening.
When I manually double click on the field, the file opens.
I am on Mac, so is that something that might be contributing to the issue. Exporting to a temp location and opening it from there is also not the desired behavior, since I have them all locally on my computer, and I don't need temp copies.
When I step through the script I see that the field get selected visually on the layout, but it doesn't open it.
Phil, I have found what the problem was, and it's quite a weird one, if I may say so.
I am used to using the debugger for running my scripts for the first time, so I did the same now. And the opening was not happening, as I have reported earlier. But, then I have tried (by accident) to run it with no debugging and it works fine, the local files are opening, and when I flip the switch the network files are opening.
It is strange why the debugger is stopping the opening process, but I have altered couple of times between using the debugger and not using it, and whenever I use it, the process is not working, and vice versa.
Thank you for your help, Phil, it is much appreciated.
What happens when you use the syntax for the URL:
..as described here: