January 13, 200521 yr I'm trying to add pdf files as attachments to email messages. The name of the file is in a field called "RFI File" I tried to do this: filewin:/j:/0010/eng/ca/<<RFI File>> but it didn't work. Got any other ideas? Thanks in advance for responding!
January 13, 200521 yr It's not going to work that way. You have to use the same file name each time. So use the Send Event script step to copy the file given in the field RFI File to the chosen default file name, for each record. Then email that.
January 13, 200521 yr Author Thanks for responding. Your solution sounds simple enough but I'm not able to get it to work. I tried this, SendEvent ["aevt";"odoc";RFI::RFI EMail Attachment] Save a Copy as ["RFITemp.pdf"; copy] and ended up with an unusuable pdf which appears to be a copy of the databse and not the original pdf. To me, SendEvent can only be used to open an application or print the file. Am I way off base? Thanks again.
January 13, 200521 yr No, Save a Copy as is for FM files. Do a search in the forums for Send Event; I've shown several specific examples of how to set up a batch file to carry out the copy.
January 13, 200521 yr Author I searched and I searched and all I could find was one post about %1 in a batch file and "cmd" to open a dos shell. Could you provide a link to one of your past examples? Before you and I spend too much time on this, can FileMaker rename a file stored on the network, e.g. j:/0010/eng/ca/RFI001.pdf to j:/0010/eng/ca/RFI_Temp.pdf? But keep in mind that "/j:/0010/eng/ca/" is in a field called NETWORK and "RFI001.pdf" is in a field called FILE. Your help is much appreciated.
Create an account or sign in to comment