SMS message

Brian Yennie byennie at qldlearning.com
Tue Apr 17 17:53:40 EDT 2007


Try putting a placeholder in the script, and then using the merge()  
command:

  tell application "SMS Mac Scripting"
                            set account to "john.doe at mac.com"
                            set pin to "1234"
                            set m to make new outgoing sms with  
properties {flash:false}
                            tell m
                                  set message to [[tMessage]]
                                  set recipients to {"+12345678900",  
"+1345678901"}
                                  set sender to "+14567890123"
                                  set delivery report to true
                                  try
                                        send
                                  on error errMsg number errNum
                                        display dialog "Error: " &  
errNum & ". " & errMsg
                                  end try
                            end tell
  end tell

--

on mouseUp
    put fld "message" into tMessage
    do (merge(fld "script")) as applescript
end mouseUp


HTH,
Brian



More information about the use-livecode mailing list