DWestphal Posted January 13, 2005 Posted January 13, 2005 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!
transpower Posted January 13, 2005 Posted January 13, 2005 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.
DWestphal Posted January 13, 2005 Author Posted January 13, 2005 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.
transpower Posted January 13, 2005 Posted January 13, 2005 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.
DWestphal Posted January 13, 2005 Author Posted January 13, 2005 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.
stuj1026 Posted January 14, 2005 Posted January 14, 2005 use the troi file plugin available at http://www.troi.com Stu
Recommended Posts
This topic is 7245 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now