iChat の plist ファイルを編集するだけです。defaults
ネストされた値には少し扱いにくいので、代わりに System Events を使用します。
tell application "System Events"
set EventActions to property list item "EventActions" of property list file ((path to preferences folder from user domain as text) & "com.apple.iChat.plist")
repeat with e in {property list item "MessageNotification" of EventActions, property list item "SubsequentMessage" of EventActions}
make new property list item at end of e with properties {name:"RunAppleScript", value:true}
make new property list item at end of e with properties {name:"iChatAppleScriptsKey", value:{"~/Library/Scripts/iChat/Message Received.scpt"}}
end repeat
end tell
これにより、「Message Received.scpt」が最初のテキスト招待状と後続のメッセージの両方に添付されます。後続のメッセージだけに使用したい場合は、単純化できます。また、変更を有効にするには、iChat を再起動する必要がある場合もあります。