Define an additional container field. You can make it global.
Put it on a layout based on your table of container fields.
Use this test in a script that loops through your records to validate the container references:
Set Variable [$Path ; Value: GetValue ( YourTable::ImageContainerField ; 3 ) ]
Go to field [YourTable::globalContainerField]
Insert Picture [Reference ; $Path]
Set Variable [$Error ; value: get ( LastError ) ]
IF [ $Error > 0 //invalid reference ]
Set Field [Yourtable::ErrorFlag ; $Error ]
error code of 100 will be file not found, which tells you the file is missing or has been renamed.
Don't have a corrupt image to test this with so don't know if this will catch those errors or not.
Nice work as always!
I reused a script I used to export the images. Not quite as nice as your but it did the trick. I like that you used the global field as a test container and that I didn't need to export all the images over again. Also I think I would have been able to catch the undisplayable ones.
missing image = error code 100
undisplayable image = error code 735
image OK =error code 0
Thanks for the help!