This is the best way I found it. By filtering, getting a “UFFFC” character (Unicode Character 'OBJECT REPLACEMENT CHARACTER') and then judging it by if statement. But I can't modify your script, so I have to use this clumsy way, but it may be the only way
Filter Clipboard Macro (v10.1.1)
Filter Clipboard.kmmacros (8.4 KB)