Sadly, setting the comment that way only works for indexed files. If it’s a file in DEVONthink’s database, then as explained by @cgrunenberg in the linked-to discussion, the comment is not written to the file, and thus not visible outside DEVONthink.