Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iChat script to close video window at the end of video chat

I need to set iChat on my parents computer to automaticaly close video window when A/V Chat Ended (from Alerts in Prefferences).

The closest script I found to what I need is


using terms from application "iChat"

on av chat ended theChat

try

close windows

end try

end av chat ended

end using terms from



This however closes all the windows of iChat. I need all of them to stay open so my parents can see my new text message coming. The only one that needs to close is the Video Window.


Please help! Thanks in advance.


J.D

Posted on Feb 4, 2013 10:02 PM

Reply
3 replies

Feb 5, 2013 1:15 PM in response to jdar25

HI,


All iChat windows and Titled and Numbered.


In AppleScript Editor go to the File Menu

Open the Dictionary option and navigate to iChat

This will give you some of the terms that can be used.


The Window listing still may not tell you all the names/titles of all the windows.


You need to try a more Specific Title where you currently have Close Windows.

"Close Video Chat" may work.

"Close Video window" may be another options.


If you can be sure the window will always be the top one "Close Front window" maybe an option.


You could also try asking here https://discussions.apple.com/community/developer_forums



User uploaded file
9:14 PM Tuesday; February 5, 2013

Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"


 iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
 G4/1GhzDual MDD (Leopard 10.5.8)
 MacBookPro 2Gb (Snow Leopard 10.6.8)
 Mac OS X (10.6.8),
 Couple of iPhones and an iPad
"Limit the Logs to the Bits above Binary Images."  No, Seriously

Feb 6, 2013 12:01 PM in response to jdar25

Hi,


The Name or title of any window is seen across the top.

A/V and Text chats tend to be named after the Buddy that you are talking to.

See this Screen Shot of an Video Chat with one of the Apple Test accounts

User uploaded file


It becomes "Video Chat with 'Buddy name' "

It will show the "Real Name" as in the Contacts app or Address Book depending if you have Mountain Lion or not.



User uploaded file
8:01 PM Wednesday; February 6, 2013

Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"


 iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
 G4/1GhzDual MDD (Leopard 10.5.8)
 MacBookPro 2Gb (Snow Leopard 10.6.8)
 Mac OS X (10.6.8),
 Couple of iPhones and an iPad
"Limit the Logs to the Bits above Binary Images."  No, Seriously

iChat script to close video window at the end of video chat

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.