i have combine a few scripts (thank you to those who have posted these bits) and created kind of a custom final collect for my organization except i need it to also run a very basic preflight so missing fonts or images will be flagged. I have tried to incorporate every preflight script i have been able to find but none seem to be working.

I have the script run and insert some info into the meta data, then it does a full collect and places the high res and low res PDFs into specific folders.

I obviously haven't written any of this but I have managed to get this completely functioning except for the preflight

here is what i have so far...How can i get it to check the status of the live preflight and give an alert/error if there are missing fonts or images?

I did not include any of my attempts at preflight because none have worked so far...

I'm not sure how to insert your snippet into my script. I keep getting an error about the variable being undefined. i have spent the last couple of hours trying to figure out what i am doing wrong so i wouldn't come back and ask for more help (i hate being a leech)

I fixed a reference in the "make PDF" portion that was still using my old reference to "d." so that is working.

the meta tagging is great

the package is working as expected

the check for missing images is working like a champ

but the check for missing fonts is giving me an issue. If no fonts are missing it works great but if there is a missing font it fails at the point where i am calling up the file info window line 81 above.

I'm not sure what you changed ....but that made it work as planned!!!!

How do i mark the correct answer correctly....should i upload my "finished script" or mark the last one as correct?

...and is there anything more i can do than to say thank you?

scott

but...

now i am wondering if there is a way to make this script ignore hidden layers?

My documents tend to use a lot of layers to customize a flyer or a brochure by having a generic base "template" and switching a series of logo layers on and off. i don't want it to return a "missing Image error" if it is on a hidden layer (which it currently does)

I have corrected my post with the full script, so if you mark that as correct, so that anyone else searching for this will be able to find the answer.

And of course we can add ignore layers but it does make is more complicated ( especially for the fonts check part).

For the link it is just a case of check the visibility of the layer where the link is placed.

However for the fonts it is a bit harder, we could check as we currently do, and if there are no missing fonts in the document, then we are good to go, if there are missing fonts we would need to work out where the fonts where used and check if that layer was visible of each use of a missing font.

i feel like you are spoon-feeding me, giving me everything but the answer and i still spend so much time trying to get it to work but I fail!!! ( i did however get overset text to flag in the preflight and an alert to pop up let the operator know the script ran successfully)

how does the visible layer for linked objects work? I think i have tried every way that does not work!!!! can you show us one that does?