From: Shane Emmons Date: 2006-09-08T00:55:19+09:00 Subject: [MAC OS X] WScript.Shell Alternative ------=_Part_97368_18847668.1157644513263 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Does anyone know of an alternative to WScript.Shell that works for Mac OS X? For anyone who doesn't know, this allows you to send key strokes (among other things) to other programs without having the other program explicitly written to accept such input. Here is an example script using WScript.Shell -----[code]----- require "win32ole" shell = WIN32OLE.new("WScript.Shell") shell.AppActivate("Command Prompt") shell.SendKeys("cls{ENTER}") shell.SendKeys("dir{ENTER}") shell.SendKeys("echo Hello, World!{ENTER}") -----[/code]----- Thanks for any help. -- --- Shane Emmons ------=_Part_97368_18847668.1157644513263--