#20726
Yutaka Emura
Keymaster

Hello LTT,

“Unspecified error” is a correct behavior. If you want the script to continue even if the Unspecified error appears, you can surround the code with try … catch statement.

For example:

try {
	document.selection.Find( "abc", eeFindNext | eeFindAround );
}
catch ( e ) {
	alert( "dialog box dismissed" );
}
alert( "end of macro" );

I hope this helps.
Thanks!