June 25, 200322 yr Hello, I've got FileMaker 6 unlimited running on a Mac with OSX. I'm trying to automate the printing and emailing of pdf documents. Right now I have FileMaker print to PDF, Troi rename the file, and SMTPit mail the file as an attachment. My problem: at times, FileMaker doesn't print to PDF quickly enough, and Troi (which is next in the script) has no file to rename. The user gets no attachment. Even worse, the next user gets the attachment belonging to the previous user. I could split up the printing and and renaming, leaving some time between them, but I'm afraid the files might still end up going to the wrong people because this is a web application, and a number of people could be going through the process at the same time. Question: Is there any way to script the naming of the file in FileMaker (using the contents of a field), so that I don't have to rename it afterwards? Thanks!
June 26, 200322 yr You may have to put a wait loop in your script to pause for a few seconds, check to see if the pdf file exists yet and repeat until it does.
Create an account or sign in to comment