Why does one clear the clipboard and the other doesn't?

I have two macros that are mostly the same. However, one clears the clipboard when it runs and the other doesn’t and I cannot for the life of me figure out what is doing that. Any ideas?

Here are the two macros.

Save and reopen payment log.kmmacros – does not clear clipboard

Save and close payment log.kmmacros – does clear clipboard

Nothing in the macro should be affecting the clipboard so something else is likely going on.

Check the Engine.log file and see if any other macros are running.

A macro being triggered by a document opening in Preview? That's the main, obvious, difference between your two macros.

Gotta ask -- what's the benefit to closing and reopening the document in the first macro, rather than simply saving it?