Solved

FM - Capture Empty Attachment in Email Script

Posted on 2011-02-16
6
419 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
  • 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now