Attaching wildcard files

I’m using the EditInsertFileAttach command to attach various files to a document for storage. Is it possible to create a wildcard entry as some files differ in name depending on who is attaching them? Basically I need to be able to search for all files with a certain suffix (e.g. “*.doc”) and attach those, but as the name is liable to change over time I can’t hard code every possible file into the command. Any ideas?

Subject: RE: Attaching wildcard files

I think you will have to use LotusScript and the Dir function to get a list of the files to be attached. Store those somewhere – in a temporary field in the document, for instance – and then run an agent that reads the field, loops through the values, and imports the files. Then delete the field – no need to store it.