Skip to content

Instantly share code, notes, and snippets.

@DavyLin
Forked from netstu/test5
Created June 5, 2014 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavyLin/29075dba7c5a5518d14b to your computer and use it in GitHub Desktop.
Save DavyLin/29075dba7c5a5518d14b to your computer and use it in GitHub Desktop.
on run {targetBuddyPhone, targetMessage, repeatCount}
tell application "Messages"
set targetService to 1st service whose service type = iMessage
set targetBuddy to buddy targetBuddyPhone of targetService
set myCount to repeatCount as integer
repeat myCount times
send targetMessage to targetBuddy
end repeat
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment