Re: Attaching PDF to email using relative path



In article
<1182553341.359120.320230@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>acuccia@xxxxxxxx
m wrote:

Using FM 8.5 on Mac OS 10.3.9

I am having trouble attaching a file to an email using a relative
path. I'm creating a pdf of a record (using Save Records As PDF
script step), and saving it with a relative path (file:Property.pdf).
I am then using the Send Mail script step to create an email with
this file as an attachment, again using the same relative path
(file:Property.pdf). This creates the email but with no attachment.
IfI change the Send Mail step to use an absolute path to the file, it
works.

Any thoughts?

Thanks,
Anthony

Went through this myself not long ago.

In my solution, a PDF invoice is saved to the Desktop using the Script
Variable $$Invoice to name the PDF.
In the Send Email script step, the attachment is specified as
"file:../../../Desktop/$$Invoice"
Seems FileMaker doesn't like "in the clear" paths. You have to use the
dotdot syntax.
Works for me.

Matt



.



Relevant Pages

  • Re: [SLE] PDF converter
    ... there), printing to PostScript from Word / Excel, then using ... See my previous post for a working setup of printing from windows directly to pdf via samba. ... The actual script is: ...
    (SuSE)
  • [SLE] [cross post mdk SuSE] Samba Print to PDF
    ... cannibalizing involved taking the mdk print-pdf script and dumping it into ... to copy the mdk print-pdf script to the SuSE box. ... (note file permissions) ... #make a temp file to use for the output of the PDF ...
    (SuSE)
  • Re: Help with first script please. files, directories, autocomplete
    ... reports named like this; 12345A-F.doc. ... Most inspections also require a technique which is saved as a pdf. ... My command line script will work like this: ...
    (comp.lang.python)
  • Re: OT:macros or software?
    ... when a .PDF file is stored there, ... words and depending on weather those words are found in that document, move it to a predetermined folder. ... Easy enough if it were a text document, or even Word, as you could write a DOS script, or a VBS script if you had to load Word to read Word documents, although writing such a script can be harder to a beginner than some might think. ... If the string was in the name of the file it would be less work - you can set up the rather marvellous "robocopy" but that won't read inside a file, and certainly not a pdf! ...
    (uk.comp.homebuilt)
  • Re: [SLE] print to PDF pseudo printer
    ... I want to be able to print to a pdf file. ... Printing --> Printing Manager ... Here is the script I copied from mdk and migrated it to my suse box: ... vars or config ...
    (SuSE)