Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Automatically set iChat status when in A/V chats System 10.5
Here is a way to automatically change your status when sending or receiving audio/video invitations. You'll need to create four simple AppleScripts, and save them into your user's Library » Scripts » iChat folder (create the folder if necessary).

Open Script Editor (in Applications » AppleScript), then copy and paste these scripts, one at a time, into the Script Editor window. Click the Compile button, then select File » Save As and point to the previously-noted iChat folder. Name them as shown with each scripts code, on the second page of the hint...

Script name: iChat invited video.scpt
using terms from application "iChat"
  on received video invitation theText from theBuddy for theChat
    set status to away
    set status message to "In conference"
  end received video invitation
end using terms from
Script name: iChat invited audio.scpt
using terms from application "iChat"
  on received audio invitation theText from theBuddy for theChat
    set status to away
    set status message to "In conference"
  end received audio invitation
end using terms from
Script name: iChat started.scpt
using terms from application "iChat"
  on av chat started
    set status to away
    set status message to "In Conference . . ."
  end av chat started
end using terms from
Script name: iChat ended.scpt
using terms from application "iChat"
  on av chat ended
    set status to available
    set status message to "Available . . ."
  end av chat ended
end using terms from
You now need to create four alerts in iChat. Open iChat's preferences, select the Alerts icon, and then set up four new rules, attaching one script to each specified event:
  • Event: Audio invitation » Run AppleScript » iChat invited audio.scpt
  • Event: Video invitation » Run AppleScript » iChat invited video.scpt
  • Event: A/V Chat Started » Run AppleScript » iChat started.scpt
  • Event: A/V Chat Ended » Run AppleScript » iChat ended.scpt
[robg adds: I tested these scripts and they worked as described.]
    •    
  • Currently 2.43 / 5
  You rated: 4 / 5 (7 votes cast)
 
[8,815 views]  

10.5: Automatically set iChat status when in A/V chats | 3 comments | Create New Account
Click here to return to the '10.5: Automatically set iChat status when in A/V chats' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Automatically set iChat status when in A/V chats
Authored by: mm2270 on May 15, '08 02:44:18PM

Interesting scripts, but I wonder if these could be modified to work with text chats to change the status message to a custom one stored in iChat, such as "Assisting another user"

I ask because we use iChat over Bonjour at my job where I do support for the end users, and I often end up chatting with more than one user simultaneously. It would just be nice to alert potential chat users that I'm in the middle of another conversation when they try to send me a text invite.



[ Reply to This | # ]
10.5: Automatically set iChat status when in A/V chats
Authored by: hintuser on May 15, '08 07:04:47PM

Here is a modified script for the text chat :

using terms from application "iChat"

on received text invitation theText from theBuddy for theChat
set status to away
set status message to "Currently text chatting . . ."
end received text invitation

end using terms from



[ Reply to This | # ]
10.5: Automatically set iChat status when in A/V chats
Authored by: hintuser on May 18, '08 12:36:03PM

Here is an improved version of the scripts that will also show the participants name in the message status :

Script name: iChat invited video.scpt

using terms from application "iChat"

on received video invitation theText from theBuddy for theChat
set status to away
set firstname to (get first name of theBuddy)
set lastname to (get last name of theBuddy)
set status message to "Video Chat" & " with " & firstname & " " & lastname
end received video invitation

end using terms from


Script name: iChat invited audio.scpt

using terms from application "iChat"

on received audio invitation theText from theBuddy for theChat
set status to away
set firstname to (get first name of theBuddy)
set lastname to (get last name of theBuddy)
set status message to "Audio Chat" & " with " & firstname & " " & lastname
end received audio invitation

end using terms from

Script name: iChat started.scpt

using terms from application "iChat"
on av chat started
tell application "iChat"
set windowname to (get name of window 1)
end tell

set status to away
set status message to windowname
end av chat started
end using terms from



[ Reply to This | # ]