1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

AppleScript & iChat - how to initiate a chat

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

  1. macrumors newbie

    #1
    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?

    Thanks!

    -Troy
     
  2. macrumors 68030

    superbovine

    #2
    the easiest way so to make a simple html page with this format of link

    Code:
    <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

    Code:
     <html>
          <head>
             <title>canned message for AIM</title>
    
          </head>
    
    
          <body>
    
    	<a href="aim:goim?screenname=troy&message=hi troy">Contact troy</a>
            <a href="aim:goim?screenname=sexygirl&message=hey sexy">Contact Toy</a>
    
          </body>
    
        </html>
        
    
    
    
    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