this has worked well thanks.
basically it's a script to list the filnames of Missing Links on the document-only, so now I guess I need to somehow count the off-document and document stuff and the get script only to continue if theres missing links on the document only?
Its become so confusing I wish i never started it!