From 7f35e628c5f111d0a324a1e9e18abb06727ad6a5 Mon Sep 17 00:00:00 2001
From: Jason Foreman <jason@threeve.org>
Date: Fri, 10 Oct 2008 22:53:40 -0500
Subject: [PATCH] Enable NSAppleScriptEnabled to get 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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/MacVim/Info.plist b/src/MacVim/Info.plist
index 90cece0..a98a83f 100644
--- a/src/MacVim/Info.plist
+++ b/src/MacVim/Info.plist
@@ -617,6 +617,8 @@
 	</array>
 	<key>SUFeedURL</key>
 	<string>http://bjorn.winckler.googlepages.com/macvim_latest.xml</string>
+	<key>NSAppleScriptEnabled</key>
+	<true/>
 	<key>UTExportedTypeDeclarations</key>
 	<array>
 		<dict>
-- 
1.6.0.1

