Am 24.03.10 22:32, schrieb björn:
> 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).

I don't know about OS X < 10.6, but over here 'man open' gives

[...]
     -W  Causes open to wait until the applications it opens
         (or that were already open) have exited. [...]

And 'open -a MacVim -W file.txt' in fact gives focus to running MacVim
instance and opens 'file.txt' in a new tab. After quitting MacVim terminal
(iTerm) prompt returns to 'input state'.

That's not making any statement about "focus returning", sure.

Having MacVim opened ':!open -a TextEdit -W %' opens current file in TextEdit
and waits until TextEdit is closed. Sure, this example is quiet silly, but for
demonstration purposes it seemed to be good enough to me :-)
-- 
Regards,

Peter Palmreuther

-- 
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