Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Phurious

macrumors newbie
Original poster
Jan 16, 2008
16
0
I am brand new to Macs and have run into a wall. You see, I am TRYING to send keystrokes to the active window. Under Windows XP, it was a VERY simple process using VBScript:

Code:
Dim oShell
Set oShell = WScript.CreateObject("WScript.Shell")

Do
[INDENT]oShell.SendKeys "Enter some text here"
oShell.SendKeys "{ENTER}"
WScript.Sleep 850000[/INDENT]
Loop

This would, regardless of the application, send the keystrokes to the active window. I am having a hell of a time trying to duplicate this simple process with Applescript. I have Googled until blue in the face, and have not found anything like what I was doing with VBScript.

Can anyone point me in the right direction?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.