jeepster485
Hit any user to continue
I'm trying to create a script that could instant message someone in iChat. So far I have:
tell application "iChat" to activate
tell application "System Events"
tell process "iChat"
tell menu item 2 of menu 3 of menu bar 1 to click
keystroke "xxx"
delay 1
(WHAT DO I DO HERE?)
keystroke "Hey"
delay 1
keystroke return
end tell
end tell
end tell
xxxx is the name of the person that to send the message to. In the spot where I have (WHAT DO I DO HERE?), I don't know how I am suppose to get the darn computer to get past the spot where you enter the persons name by hitting the "OK" button. I tried using a "keystroke return" but that didn't work. Any one know what to do to get past that button?
tell application "iChat" to activate
tell application "System Events"
tell process "iChat"
tell menu item 2 of menu 3 of menu bar 1 to click
keystroke "xxx"
delay 1
(WHAT DO I DO HERE?)
keystroke "Hey"
delay 1
keystroke return
end tell
end tell
end tell
xxxx is the name of the person that to send the message to. In the spot where I have (WHAT DO I DO HERE?), I don't know how I am suppose to get the darn computer to get past the spot where you enter the persons name by hitting the "OK" button. I tried using a "keystroke return" but that didn't work. Any one know what to do to get past that button?