On 23 March 2010 14:09, Andrew Stewart wrote:
>
> I'd like to get MacVim to give focus to a MacRuby program, which
> accepts some input from the user via a GUI and then returns the input
> (and focus) back to MacVim.
>
> Right now I can get MacVim to execute a non-interactive Ruby program,
> though when I try a console-based interactive Ruby program it simply
> blocks MacVim indefinitely.  I think this is because the Ruby is
> trying to interact with the user via stdin, and there's no console as
> such when the program is launched via MacVim.  However I don't want to
> get bogged down with this because my real aim is to interact with the
> user via a MacRuby GUI.
>
> So I just wanted to ask, before I embark on this, is it feasible?  If
> so, what's the recommended way to launch another program and wait for
> it to return something to MacVim?

To open some other GUI program you could use (from within MacVim):

:!open -a ProgramName filename

Maybe that's enough for your needs.  As far as I know there is no
universal way on Mac OS X to wait for a GUI app to finish (let alone
return focus to the calling program).

Björn

-- 
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to 
vim_mac+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to