If you don't need the catch to do anything, and you can't use return (as that would end the auto-execute section) a ("pass") string in parenthesis should be recommended:
Code: Select all
try Run "file.txt"
catch
("pass") ; or ("Do nothing")
else ; Runs only if opening the file succeded
MsgBox "file opened"