苹果脚本-How to send a message using iChat and AppleScript

set peopleICareAbout to {"Pietje Piet", "Joe Anonymous"}

tell application "iChat"
    repeat with myBuddy in buddies
        --get properties of myBuddy
        if full name of myBuddy is in peopleICareAbout then
            send "dfgdgdf gdg dfg dfg" to myBuddy
        end if
    end repeat
end tell

你可能感兴趣的:(苹果脚本-How to send a message using iChat and AppleScript)