Solved

FM - Capture Empty Attachment in Email Script

Posted on 2011-02-16
6
416 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Accepted Solution

by:
challengeday earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

13 Experts available now in Live!

Get 1:1 Help Now