Yes. I have successfully used this in a standard file picker. As you can see in my initial code sample. And for whatever reason it has worked in my scenario.
The issue is that the only way I have successfully been able to add the file without the association to a particular application is with the manual process, and in this scenario I am unable to set the folder, and file type filter.
I have tried recording a macro for the whole process and seeing if I can edit the code after, but it seems that once you leave the initial scope, i.e. when the file picker dialog opens, it fails to pick up actions.
The recorded macro just contains:
I tried modifying the original code to be:
But this still forms the association with the PDF reader I have installed.
Bookmarks