rvfowler2
asked on
FM - Capture Empty Attachment in Email Script
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
-EmailIssue.JPG
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.
ASKER
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
ASKER
Thanks.
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?