• 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
UI scripting & iChat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: UI scripting & iChat
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: Save in Image Events
  • Next by Date: Re: UI scripting & iChat
  • Previous by thread: AppleScripting Univ Access "use grayscale"?
  • Next by thread: Re: UI scripting & iChat
  • Index(es):
    • Date
    • Thread