From fa6eedf24f8fbce71f7ca617ca83f10b3864f2c7 Mon Sep 17 00:00:00 2001 From: Jason Foreman Date: Sun, 12 Oct 2008 14:36:22 +0200 Subject: [PATCH] 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MacVim/Info.plist b/src/MacVim/Info.plist index 90cece0d89..a98a83fb53 100644 --- a/src/MacVim/Info.plist +++ b/src/MacVim/Info.plist @@ -617,6 +617,8 @@ SUFeedURL http://bjorn.winckler.googlepages.com/macvim_latest.xml + NSAppleScriptEnabled + UTExportedTypeDeclarations