dbTalk Databases Forums  

Attaching PDF to email using relative path

comp.databases.filemaker comp.databases.filemaker


Discuss Attaching PDF to email using relative path in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
acuccia@gmail.com
 
Posts: n/a

Default Attaching PDF to email using relative path - 06-22-2007 , 06:02 PM






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. If
I change the Send Mail step to use an absolute path to the file, it
works.

Any thoughts?

Thanks,
Anthony


Reply With Quote
  #2  
Old   
Matt WIlls
 
Posts: n/a

Default Re: Attaching PDF to email using relative path - 06-22-2007 , 07:59 PM






In article
<1182553341.359120.320230 (AT) z28g2000prd (DOT) googlegroups.com>acuccia (AT) gmail (DOT) co
m wrote:

Quote:
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





Reply With Quote
  #3  
Old   
Jens Teich
 
Posts: n/a

Default Re: Attaching PDF to email using relative path - 06-23-2007 , 06:56 AM



acuccia (AT) gmail (DOT) com writes:

Quote:
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. If
I change the Send Mail step to use an absolute path to the file, it
works.
Where is the Property.pdf file located?
Where is the FileMaker database located?
FM server involved?

Jens

--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


Reply With Quote
  #4  
Old   
acuccia@gmail.com
 
Posts: n/a

Default Re: Attaching PDF to email using relative path - 06-25-2007 , 01:35 AM



On Jun 23, 4:56 am, Jens Teich <i... (AT) jensteich (DOT) de> wrote:
Quote:
acuc... (AT) gmail (DOT) com writes:
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. If
I change the Send Mail step to use an absolute path to the file, it
works.

Where is the Property.pdf file located?
Where is the FileMaker database located?
FM server involved?

Jens
This is a shared file solution, where one person hosts the file and 3
others share it (no server). On a client machine (non-host), the file
was created in the same directory as the application ("Filemaker Pro
8.5", I think it's called). My assumption was that I didn't have to
know where the file was being created, and that both "relative paths"
were relative to the same place. If both the Save Records As PDF step
and the Send Mail step both used the same relative path, it would get
created and attached from the same place without me having to know
where. Are my assumptions incorrect, or my logic?

Thanks,
Anthony



Reply With Quote
  #5  
Old   
Jens Teich
 
Posts: n/a

Default Re: Attaching PDF to email using relative path - 06-27-2007 , 04:04 PM



acuccia (AT) gmail (DOT) com writes:

Quote:
This is a shared file solution, where one person hosts the file and 3
others share it (no server). On a client machine (non-host), the file
was created in the same directory as the application ("Filemaker Pro
8.5", I think it's called). My assumption was that I didn't have to
know where the file was being created, and that both "relative paths"
were relative to the same place. If both the Save Records As PDF step
and the Send Mail step both used the same relative path, it would get
created and attached from the same place without me having to know
where. Are my assumptions incorrect, or my logic?
Relative paths are starting relative to the path of the fm file if it is
a local file. If it is a shared file the path of the fm application is used
instead.

jens

--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.