Hello, so I made a program in AppleScript to send my friend a Skype message (and some friendly spamming :P) Anyways, I'll print the code.
tell application "Skype"
set child to "1"
repeat while child is not 2
send command "MESSAGE friend check" script name "My Script"
set child to child + 1
end repeat
end tell