script iChat to send message
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.