Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > stupid question about AppleScript and iChat

stupid question about AppleScript and iChat
Thread Tools
Addicted to MacNN
Join Date: Oct 2001
Location: Automatic
Status: Offline
Reply With Quote
Oct 20, 2002, 04:22 AM
 
Hi, how to enable an iChat room within a web site?, that is, as easy as from the web page you can act like opening iChat from the Finder and clic Command+G and finally typing the chat room name. Then the user navigating in that site can doing a single clic and open iChat joining the desired room.

Maybe I must 'record' the process in 10.2 and then bring it to the web page's code? Is this hard?, no idea here really...

Of course if there is a better option to do this, please, tell me about it.

Thanks.


"That plane's dustin' crops where there ain't no crops."
     
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Oct 20, 2002, 01:51 PM
 
Originally posted by angelmb:
Hi, how to enable an iChat room within a web site?, that is, as easy as from the web page you can act like opening iChat from the Finder and clic Command+G and finally typing the chat room name. Then the user navigating in that site can doing a single clic and open iChat joining the desired room.

Maybe I must 'record' the process in 10.2 and then bring it to the web page's code? Is this hard?, no idea here really...

Of course if there is a better option to do this, please, tell me about it.

Thanks.
Last time I checked, iChat isn't scriptable. Also, you share a lot of misconceptions about how AppleScript works, it's not a macro language like Quickeys. It doesn't click on menus, do commands, type.. etc.. What it does is send events (AppleEvents) to programs which tells them to do things with certain parameters. If iChat were scriptable then it would be something like:

tell application "iChat" to join chat room "blah"

where 'join' is the command, 'chat room' is the class, and 'blah' is the parameter. And even if it were, you can't make a computer launch an AppleScript from the web. If you could, then you could do something dangerous like...

tell application "Finder" to delete every file

I don't know how well that would work though, I honestly haven't really tried it out before.

Now as for an actual solution.. All you have to do is use the following as a link:

aim:gochat?roomname=hello+world

So..

<a href="aim:gochat?roomname=hello+world">

Remember that if there are any spaces in your name, replace them with a "+" so My Awesome Chat would be...

<a href="aim:gochat?roomname=My+Awesome+Chat">

Now I know it works with IE but not with OW, I don't know about the other ones though :/

Hope this helps.
     
angelmb  (op)
Addicted to MacNN
Join Date: Oct 2001
Location: Automatic
Status: Offline
Reply With Quote
Oct 20, 2002, 02:10 PM
 
Thanks for your time and the useful info, I will try it the way you said.


"That plane's dustin' crops where there ain't no crops."
     
angelmb  (op)
Addicted to MacNN
Join Date: Oct 2001
Location: Automatic
Status: Offline
Reply With Quote
Oct 21, 2002, 12:35 PM
 
half way done, if I insert "HREF="iChat:gochat?roomname=*****" as link being ***** the room name, iChat opens, but not the room I want...

keeping it under investigation...


"That plane's dustin' crops where there ain't no crops."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2