Solved

FM - Capture Empty Attachment in Email Script

Posted on 2011-02-16
6
422 Views
Last Modified: 2012-05-11
In the attached code, is there a way to capture the nonexistence of a file, say either by If is empty or by capturing an error?  I can do it for the absence of a file, but not for the absence of a file to attach to an email.  Thanks.
-EmailIssue.JPG
0
Comment
Question by:rvfowler2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:challengeday
ID: 34920286
Hi rvfowler,

I think you're back to using a file manipulation plug-in like Troi: http://www.troi.com/software/fileplugin.html

Either that or address making sure the files are there from a different angle. How do they get there in the first place?
0
 
LVL 4

Expert Comment

by:challengeday
ID: 34920314
The other thing you can do is use the same technique you used previously by trying to open the file and catching the error, however, if the file is there then it will open.
0
 
LVL 2

Author Comment

by:rvfowler2
ID: 34922045
Thanks.  I think that I want to stay away from Troi just because I have to load it on every single desktop.  I wonder if I could code it so if it opens, I immediately close it?

Regarding presence of the file; it is just the case that we do not have one for every record and will not.  Just the nature of the business.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Accepted Solution

by:
challengeday earned 500 total points
ID: 34922110
Once the command leaves FM there's no communication back to FM. However, yes, you might be able to send an event to trigger a batch file (or VBScript) to close the file.

Other creative ways to address the issue:
1) Keep track of which records have a file with a checkbox, then simply check the value of the checkbox.

2) Store the files themselves in an FM container on the record itself.

2) Having dummy files for records that don't have one, like the "this page intentionally left blank." It could be a standard document and it might even have useful information as an attachment.

0
 
LVL 2

Author Comment

by:rvfowler2
ID: 34926115
For #2, please view another question currently open.  I need a complete strategy for dealing with external docs.

Great idea for #1 at least for files that I create via FM.  I'll use that one (though there is one instance where a file is created outside FM).  Awarding points.  
0
 
LVL 2

Author Closing Comment

by:rvfowler2
ID: 34926119
Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question