Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7245 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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.

Posted

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.

Posted

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.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.