Skip navigation

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

524 Views 3 Replies Latest reply: Feb 6, 2013 12:01 PM by Ralph Johns (UK) RSS
jdar25 Calculating status...
Currently Being Moderated
Feb 4, 2013 10:02 PM

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 (66,815 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

  • Ralph Johns (UK) Level 9 Level 9 (66,815 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

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.