Hide pop up dialog - eg. 'referenced file not found'

Hi

I need to hide pop up dialogs when running a script  'referenced file not found'.

My script open a lot of files - log information - and close the file again.

The macro stop when a reference not found - I just check no and hide dialog - but the dialog pop up again.

Are there a command the ignore those popups when running the macro.

BR Niels

SolidworksApi/macros