Do you have file extension ".pdf" at the end of your file name?
It is a "variable" file name.
If I add .pdf, then that simply shows up in the title. For example : "June 2016 statement.pdf".
It changes the TITLE only of the file.
And, to emphasize: how can it work for two years, and then not work.
I did not touch the code.
Is it possible that someone has set TextEdit to be the default application that opens PDF files?
well, PDFs open by default in "Preview".
So, i switched it back to Adobe Reader.
Makes not difference.
What I mean specifically is this:
- I have two "buttons" on all my docs. One is a script to simply open as a PDF. This works. It opens as a PDF, now that I switched by default preference to Adobe Acrobat.
- However, and this is key, I have a second button with script that is the same "save as PDF", but this time with "attach to email automatically." And ..... the email opens automatically as it should, and the file is attached, but it is not a PDF. It is a Text Edit doc!
Here is a snapshot of the result:
As you can see, it is not a PDF doc. Uhhh.
It was worth a shot, sort of like the "is the computer plugged in" kind of question.
You said you have a new Mac. Have you printed a pdf outside of FM? Did it work as intended or is this more than just a FM issue.
Well, i have no problems with PDF otherwise, that I can recall.
They all open find in Adobe Reader.
And they print out fine.
Try making Preview the default pdf app.
Preview was my default app, I'm afraid.
I just changed it to Adobe Reader, when PeterDoern mentioned.
So, to clarify, "Save as PDF" script is working fine. It opens, fine, and it IS a PDF doc.
It is the other script which is not working. And that script is identical to the above, except I have simply "checked" the box marked "create email with file as attachment".
I have a feeling that there is a problem with Adobe/PDF, not Filemaker ?
After all, this script worked fine for two years. I have sent many, many emails using this script step, and it worked like a charm. The email would open in front of me, and there would be the little PDF icon.
Something has changed. And I have not upgraded or changed from Filemaker 14. Thus, logic is maybe indicating that it is Adobe PDF? That thing could be the problem?
Latest version of 14 is 14.0.6. Is that what you have?