3 Replies Latest reply: Feb 6, 2013 12:01 PM by Ralph Johns (UK)
jdar25 Level 1 Level 1 (0 points)

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

  • Ralph Johns (UK) Level 9 Level 9 (69,150 points)

    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

     

     

    3Sigcopy2.png
    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

  • jdar25 Level 1 Level 1 (0 points)

    Thanks Ralph for your help. "Front Window" worked.

    Does any one know what's the Tite or Number of the iChat video window please!!?

    Can't find it in the directory. "Video Chat" or "Video Window" did not work.

  • Ralph Johns (UK) Level 9 Level 9 (69,150 points)

    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

    Screen Shot 2013-02-06 at 19.51.13.png

     

    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.

     

     

    3Sigcopy2.png
    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