Enable basic AppleScript support
commit65d57bf01f8461e161b77f12d870e71e0daff19b
authorJason Foreman <jason@threeve.org>
Sat, 11 Oct 2008 03:53:40 +0000 (10 22:53 -0500)
committerBjorn Winckler <bjorn.winckler@gmail.com>
Sun, 12 Oct 2008 12:40:48 +0000 (12 14:40 +0200)
tree8c7d5e6ae22e0f1699198cae6a91fac8867510a4
parentc348720e77aa450f722884a2d0b4f66ef42aa0b0
Enable basic AppleScript support

Putting this key into the Info.plist file turns on the basic AppleScript
support Cocoa provides.  Doing so allows MacVim to receive some basic
events.  This gives MacVim a bit better integration into Mac OS X.

Below is an example which, when placed in one's .vimrc file,  causes the
window to be zoomed during startup.

let script='osascript -e "tell application \"MacVim\""'
       \ . ' -e "set zoomed of first window to true"'
       \ . ' -e "end tell"'
au VIMEnter * call system(script)
src/MacVim/Info.plist