Build a CSV file with Excel, the first field is a number, the second field is the content
CSV file contents
189*****773;hello1
189*****773; Hello2
189*****773; Hello3
189*****773; Hello4
Open the Script Editor
Tell Application "Messages"
Set the This_folder to Path to Desktop folderasalias
Set Thefullpath to POSIX Path of This_folder
Set CSVData to Read thefullpath & "/test.csv"
Set csventries to paragraphs of CSVData
Set Targetservice to ID of 1St Service whose Service Type = IMessage
repeat with I From 1 to Count csventries
Set Potion To (offset of ";" inch (csventries ' sitem i) ' s text )
set phone to text 1 thru ( potion -1) of ( Csventries ' s item i ) ' s text
set MessageBody to text ( potion + 1) thru -1 of ( csventries ' s item i ) ' s text
Set Thebuddy to Buddy phone of service ID Targetservice
Send messagebody to Thebuddy
End Repeat
End Tell
The code is simple, there's nothing to talk about, the test passes
Mac uses imessage to send messages automatically