macOS Mojave (10.14) 下 Emacs 的 AppleScript 支持异常

Wow,把这两行加到 Info.plist 后重启 Emacs 就好了。

diff -u --label /Users/xcy/src/emacs/nextstep/Emacs.app/Contents/Info.plist --label \#\<buffer\ Info.plist\> /Users/xcy/src/emacs/nextstep/Emacs.app/Contents/Info.plist /var/folders/7f/s191h4q97p90374yw15ssrs00000gn/T/buffer-content-4FHTBv
--- /Users/xcy/src/emacs/nextstep/Emacs.app/Contents/Info.plist
+++ #<buffer Info.plist>
@@ -675,5 +675,7 @@
 	</array>
 	<key>NSAppleScriptEnabled</key>
 	<string>YES</string>
+	<key>NSAppleEventsUsageDescription</key>
+	<string>Emacs requires permission to send some event to another application.</string>
 </dict>
 </plist>

Diff finished.  Sun Oct 28 17:41:12 2018
2 个赞