UI scripting & iChat
UI scripting & iChat
- Subject: UI scripting & iChat
- From: Tom Bonura <email@hidden>
- Date: Wed, 14 Dec 2005 14:57:24 -0800
I am trying to do something simple - when an audio invitation comes into iChat I would like to be able to accept the invitation (or decline it) using AppleScript. iChat's marginal scripting does not let me do that directly so I thought UI scripting would work.
I can get the chat invitation window and even its elements but I cannot seem to get either the window to become activated by using "click" nor can I send a click to the button.
tell application "System Events" tell process "iChat" get every window whose name is "Buffy" -- the name of the sender of the invite if the result is not {} then set theW to item 1 of the result tell application "iChat" to activate click theW -- does not activate the window end if end tell end tell
Same goes if I try to click on the Accept button. Any thoughts?
Tom Bonura |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden