From: Gary Wright Date: 2007-03-23T07:43:15+09:00 Subject: Re: How do I properly spawn an external process on OS X from Ruby? On Mar 22, 2007, at 5:45 PM, Luke wrote: > I've been struggling with this for quite a long time now (weeks?) and > figure it's time to get some advice from folks that know what they're > doing. > > Essentially, I am trying to launch an OSX GUI application (The Adobe > Flash Player) from a ruby process, send this new process a file target > to open, and keep a handle to this process so that I can find out when > it exits, or even force it to exit in some circumstances. It sounds like the 'applescript' gem might be what you are looking for. Here is an intro: http://www.oreillynet.com/pub/a/mac/2007/02/27/replacing-applescript- with-ruby.html and here is the rubyforge page: http://rubyforge.org/projects/rb-appscript/ There is also Ruby OSA: http://rubyosa.rubyforge.org/ Gary Wright