• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
script iChat to send message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

script iChat to send message


  • Subject: script iChat to send message
  • From: Phi Sanders <email@hidden>
  • Date: Sun, 16 Nov 2003 19:01:08 -0500

I want to automate sending a message via iChat AV under Panther (to send intermapper alerts to my treo) and am having trouble figuring out the "send" command syntax :

send: Send account a text message or video invitation.
send reference -- the object for the command
[to account]

The "reference" part is what has me stymied, as I believe "to account" would accept "to 'email@hidden'" - I've tried all kinds of random variations, but I ether get...

Error "send command not sent to an account object" when I try :

set vMessage to "this is a test IM from my script"
set vChatter to "aim_handle"

tell application "iChat"
send vMessage to vChatter
end tell


Or I get "variable vAccount is not defined" when :

set vMessage to "this is a test IM from my script"
set vChatter to "aim_handle"

tell application "iChat"
set vAccount to first account
tell vAccount to send vMessage to vChatter
end tell

This is the kind of hump recordable applications have helped me to get over in the past, unfortunately iChat AV is not recordable.

~Phi
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: script iChat to send message
      • From: Phi Sanders <email@hidden>
  • Prev by Date: Re: Information needed for remote copy
  • Next by Date: Full Integer o real.
  • Previous by thread: Re: Inconsistent results from Finder and System Events
  • Next by thread: Re: script iChat to send message
  • Index(es):
    • Date
    • Thread