edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Opening MacVim from AppleScript launches another dead one? #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select some files to open with MacVim.
2. Launch an AppleScript Editor.
3. Type in the following and run it:
   tell application "Finder" to open selection using path to application "MacVim"
4. MacVim launches, opens the selected files (as separated tabs).
5. But then, another Vim icon appears on the dock bouncing, and not responding 
for a long time 
:'(

What is the expected output? What do you see instead?
Step #5 should not happen.
The second Vim icon on the dock does not have the lighting dot below. (not sure 
what this 
means in Mac OS X)

What version of MacVim and OS X are you using?
- MacVim 7.2 stable 1.2 (33.3)
- Mac OS X 10.6.1 Intel

Please provide any additional information below.
- However, simply activating MacVim works fine:
   tell application "MacVim" to activate

- Additionally, opening a folder from doesn't show the expected :Explore 
window.  For example, 
if I open "home" instead of "selection" from Step 3, MacVim displays an empty 
window with the 
following line on the bottom instead:
   "~/" --No lines in buffer--
- However, launching it through the shell works as expected:
   do shell script "open -a MacVim ~/

I would be very happy if I could smoothly open MacVim from my AppleScripts.

Jaeho

Original issue reported on code.google.com by jaeho.shin on 7 Oct 2009 at 5:18

GoogleCodeExporter commented 9 years ago
Download the version linked to here

http://b4winckler.wordpress.com/2009/09/02/macvim-on-snow-leopard/

and see if that works.  Let me know how it goes.

Original comment by bjorn.winckler@gmail.com on 7 Oct 2009 at 5:25

GoogleCodeExporter commented 9 years ago
Wow, the linked one works wonderfully well :-)
(for both problems)

I'm considering to build a 64bit one for myself.

Thank you Bjorn.

Original comment by jaeho.shin on 8 Oct 2009 at 1:56

GoogleCodeExporter commented 9 years ago
You're welcome!  I'm glad it works now.

Original comment by bjorn.winckler@gmail.com on 8 Oct 2009 at 4:19

GoogleCodeExporter commented 9 years ago
I currently try to open saved sessions using AppleScript.

This thread helped a lot, but I wonder if MacVim handles parameters (and if so, 
how?).

In other words, I want to run a script similar to "vim -S <filename>

Cheers 

Original comment by thilo.bo...@googlemail.com on 27 Oct 2009 at 10:37

GoogleCodeExporter commented 9 years ago
Please don't post questions like this on the issue list, instead use the 
vim_mac Google group.  Thanks.

Original comment by bjorn.winckler@gmail.com on 28 Oct 2009 at 10:29