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"
		try
			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
			return
		end try
	end tell
end performSmartRule
1 Like

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

Thanks so much.

1 Like