The code you posted works fine while recp first installed, say "" . However, you will get , as the first character in your string, which is probably not what you want.
Instead, you can do this:
set _delimiters to AppleScript text item delimiters set AppleScript text item delimiters to "," set recp to eachMessage recipient address as string set AppleScript text item delimiters to _delimiters
Yes, this is ugly, but it is more efficient, and you only get "," between addresses.
source share