There are a few ways to do this. The easiest way would be to use a plugin or maybe applescript to check if the file exists as you loop through the records.
Another option would be to import into a global container field and error trap to see if the file imported correctly.
Here is s thread that mentions both methods.
Thanks. I attempted to get this working, but am having trouble getting the first steps going. I have already used the Mooplug to set the path to the images:
Set Field [IMAGES::JPEGPATH; Moo_DialogFolder(IMAGES::JPEGPATH;True)]
Set Variable [$$jpegpath; Value:IMAGES::JPEGPATH]
I assuming since I have that path captured and the variable set I may be able to use that with the IMAGES::IMAGE1, the field with the name of the image to check if it exists in that folder. Honestly I'm lost as to how to put it into motion using the mooplug FileExists. I'm using a PC at this point so Applescript is not an option currently. Thanks for any help.
For the benefit of others in the same predicament, this is what worked for me.
- Go to Record/Request/Page[ First ]
- Set Variable [ $$missing; Value:IMAGES::JPEGPATH & "/" & GetAsText ( IMAGES::IMAGE1) ]
- Set Field [ IMAGES::MISSINGIMAGE; Moo_FileExists( $$missing) ]
- Go to Record/Request/Page[ Next; Exit after last ]
- End Loop
The JPEGPATH was set by another Mooplug, Moo_Dialogfolder and set to global variable, then passed to the field JPEGPATH. I then did a find on the field MISSINGIMAGE for '0' the value returned and deleted that found set. Don't know if this was the best or most efficient way, but it worked. If anyone has any input or tips on making this more efficient, please feel free to add. Thanks Mr. Vodka for pointing me in the direction.