Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tcmeyers

macrumors newbie
Original poster
May 29, 2006
1
0
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
 
tcmeyers said:
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

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.