AppleScript & iChat - how to initiate a chat

Discussion in 'Mac Programming' started by tcmeyers, May 29, 2006.

  1. macrumors newbie

    May 29, 2006
    We use iChat for intraoffice communications. There are a number of situations where triggering an AppleScript to start a chat with a fixed person and a 'canned' starting message would be very convenient.

    I've looked at the AppleScript dictionary in iChat but it's beyond me to figure out how to use it to initiate a chat.

    Can anyone supply me with sample code, or direct me to a resource that would explain how?


  2. macrumors 68030


    Nov 7, 2003
    the easiest way so to make a simple html page with this format of link

    <a href="aim:goim?screenname=ichat/aim&message=hi user>username or text goes here</a>
    for example if you aim/ichat id was troy

             <title>canned message for AIM</title>
    	<a href="aim:goim?screenname=troy&message=hi troy">Contact troy</a>
            <a href="aim:goim?screenname=sexygirl&message=hey sexy">Contact Toy</a>
    then just save it as an html file using your favorite text editor (not word). all this is considering you did everything under the correct html format.

Share This Page