Tags with comma

I have a smart rule that should assign a tag “Schmidt, Arno” to a document. But instead of the tag “Schmidt, Arno” it assigns the two tags “Schmidt” and “Arno” to the document. Any workaround besides “don’t use a comma in your tags”?

Does it work with a backslash in front of the comma?

Bad luck that such a famous author has such a common name :frowning:

Backslash doesn’t work. If I use it, the rule will assign the tags “Schmidt” and “Arno”.

I guess it’s a bug or at least an inconsistence, as I can assign tags with a comma inside manually but cannot by smart rule.

You could assign Schmidt, Arno via Smart Rule script

on performSmartRule(theRecords)
	tell application id "DNtp"
			repeat with thisRecord in theRecords
				set tags of thisRecord to (tags of thisRecord) & {"Schmidt, Arno"}
			end repeat
		on error error_message number error_number
			if the error_number is not -128 then display alert "DEVONthink" message error_message as warning
		end try
	end tell
end performSmartRule
1 Like

Hey, that did it. You’re a genius!

Thanks so much.

1 Like

this seems to be broken now with 3.8. Now I get this error:

Which version of macOS do you use? Seems to work fine over here.

Big Sur 11.6.

BTW: the script runs fine as a standalone script or from Script Debugger. The error occurs only if run as an embedded script inside a smart rule.

I successfully tried that too. A screenshot of the rule and of the script used by the rule would be useful, thanks.

this is weird: all of a sudden the rule works fine again. I did some verifying and file checking on the database yesterday. Maybe that helped.