I have a text file with names. Each name is on a new line.
Bob Robert John Leslie Anna
How can I read this text file with AppleScript so that I can use the name in each line to send an iMessage to somebody by replacing
LINE-FROM-FILE with one name from the file?
tell application "Messages" set theBuddy to buddy "LINE-FROM-FILE" of service "iCloud" send "Hi there" to theBuddy end tell