GNU bug report logs - #18283
24.4.50; Feature Request -- OSX -- add -- <key>NSAppleScriptEnabled</key> <string>YES</string>

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Sun, 17 Aug 2014 18:47:02 UTC

Severity: wishlist

Found in version 24.4.50

Done: Anders Lindgren <andlind <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18283 in the body.
You can then email your comments to 18283 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18283; Package emacs. (Sun, 17 Aug 2014 18:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Keith David Bershatsky <esq <at> lawlist.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 17 Aug 2014 18:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Keith David Bershatsky <esq <at> lawlist.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.50;
 Feature Request -- OSX -- add -- <key>NSAppleScriptEnabled</key>
 <string>YES</string>
Date: Sun, 17 Aug 2014 11:45:34 -0700
As a feature request for Emacs versions built `--with-ns`, perhaps the Emacs team would consider adding two (2) lines to `. . . /Emacs.app/Contents/Info.plist` to permit using certain Applescripts to control Emacs.  Just before the very ending of the file -- i.e., just above `</dict> </plist>`, insert:

    <key>NSAppleScriptEnabled</key>
    <string>YES</string>

Thanks,

Keith

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

In GNU Emacs 24.4.50.1 (x86_64-apple-darwin10.8.0, NS appkit-1038.36 Version 10.6.8 (Build 10K549))
 of 2014-08-15 on MP.local
Repository revision: 117706 rgm <at> gnu.org-20140815043406-p5hbu97cbm7pulcn
Windowing system distributor `Apple', version 10.3.1038
Configured using:
 `configure --with-ns'

Configured features:
ACL LIBXML2 ZLIB

Important settings:
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  sd-mode: t
  sb-mode: t
  tb-mode: t
  shell-dirtrack-mode: t
  cm-mode: t
  bc-mode: t
  as-mode: t
  ds-mode: t
  ml-mode: t

Recent input:

Recent messages:

Load-path shadows:
/Users/HOME/.0.data/.0.emacs/.0.flim/md4 hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/md4
/Users/HOME/.0.data/.0.emacs/.0.flim/hex-util hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/hex-util
/Users/HOME/.0.data/.0.emacs/.0.flim/sasl hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/net/sasl
/Users/HOME/.0.data/.0.emacs/.0.flim/sasl-ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/net/sasl-ntlm
/Users/HOME/.0.data/.0.emacs/.0.flim/sasl-digest hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/net/sasl-digest
/Users/HOME/.0.data/.0.emacs/.0.flim/sasl-cram hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/net/sasl-cram
/Users/HOME/.0.data/.0.emacs/.0.flim/ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/net/ntlm
/Users/HOME/.0.data/.0.emacs/.0.flim/hmac-md5 hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/net/hmac-md5
/Users/HOME/.0.data/.0.emacs/.0.flim/hmac-def hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/net/hmac-def
/Users/HOME/.0.data/.0.emacs/.0.wl/rfc2368 hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/mail/rfc2368
/Users/HOME/.0.data/.0.emacs/.0.wl/utf7 hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/gnus/utf7
/Users/HOME/.0.data/.0.emacs/.0.simi/smime hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/gnus/smime
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/obsolete/pgg
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-pgp5 hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp5
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-pgp hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-parse hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/obsolete/pgg-parse
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-gpg hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/obsolete/pgg-gpg
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-def hides /Users/HOME/.0.data/.0.emacs/Emacs_08_15_2014.app/Contents/Resources/lisp/obsolete/pgg-def

Features:
(shadow emacsbug modb-legacy wl-mime mime-edit pgg-parse pccl pccl-20
signature mime-setup mail-mime-setup semi-setup mime-pgp pgg-def
mime-play filename mime-image modb-standard elmo-imap4 lawlist-desktop
frameset lawlist-dv lawlist-mc rect lawlist-ztree lawlist-wl wl-demo
wl-draft elmo-pop3 eword-encode wl-template sendmail wl-news
wl-address wl-thread elmo-nntp elmo-net elmo-dop elmo-cache elmo-map
wl-folder wl wl-e21 wl-spam wl-action wl-summary wl-refile wl-util pp
elmo-flag elmo-localdir wl-message elmo-mime mmelmo-buffer mmelmo-imap
mime-view mime-conf calist semi-def mmimap mime-parse mmbuffer
mmgeneric elmo-filter elmo-multi elmo-spam elsp-header elsp-generic
elmo elmo-signal wl-highlight wl-vars wl-version elmo-msgdb modb
modb-generic modb-entity luna mime elmo-util emu invisible inv-23 poem
poem-e20 poem-e20_3 eword-decode std11 elmo-date elmo-vars
elmo-version w3m-load mime-w3m w3m browse-url doc-view jka-compr
image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl
w3m-favicon w3m-image w3m-proc w3m-util lawlist-dired dired-aux
lawlist-vr-hr lawlist-ws disp-table lawlist-calculator
lawlist-flyspell bbdb-autoloads bbdb lawlist-yasnippet
lawlist-tex-mode skeleton compare-w lawlist-text-mode lawlist-tabbar
lawlist-github ido view tramp tramp-compat tramp-loaddefs trampver
shell pcomplete help-mode grep compile comint epa epg epg-config
diff-mode autorevert filenotify ansi-color find-lisp log-edit ring
add-log thingatpt log-view pcvs-util conf-mode time-stamp vc-git vc
vc-dispatcher ediff-merg ediff-wind ediff-diff ediff-mult ediff-help
ediff-init ediff-util ediff rx ert ewoc debug timezone eieio-base
lawlist-org lawlist-calendar derived lawlist-toodledo advice url-http
url-auth url-gw url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util url-parse auth-source eieio
byte-opt bytecomp byte-compile cconv eieio-core password-cache
url-vars mailcap json xml noutline outline gnus-sum gnus-group
gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 mel
path-util mime-def alist mcharset mcs-20 mcs-e20 pcustom pces pces-e20
pces-20 broken poe pym static apel-ver product netrc nnoo parse-time
gnus-spec gnus-int gnus-range message dired format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus
gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit cl
lawlist-frame-buffer lawlist-init pcase help-fns cl-macs gv easy-mmode
edmacro kmacro cl-loaddefs cl-lib savehist server ps-print ps-def lpr
find-func saveplace easymenu time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
cocoa ns multi-tty emacs)

Memory information:
((conses 16 844088 40949)
 (symbols 48 56324 0)
 (miscs 40 81 325)
 (strings 32 113344 14066)
 (string-bytes 1 3778814)
 (vectors 16 36499)
 (vector-slots 8 681370 29421)
 (floats 8 971 179)
 (intervals 56 3956 62)
 (buffers 976 13))




Reply sent to Anders Lindgren <andlind <at> gmail.com>:
You have taken responsibility. (Tue, 24 Nov 2015 21:09:02 GMT) Full text and rfc822 format available.

Notification sent to Keith David Bershatsky <esq <at> lawlist.com>:
bug acknowledged by developer. (Tue, 24 Nov 2015 21:09:02 GMT) Full text and rfc822 format available.

Message #10 received at 18283-done <at> debbugs.gnu.org (full text, mbox):

From: Anders Lindgren <andlind <at> gmail.com>
To: 18283-done <at> debbugs.gnu.org, Keith David Bershatsky <esq <at> lawlist.com>
Subject: AppleScript enabled
Date: Tue, 24 Nov 2015 22:08:53 +0100
[Message part 1 (text/plain, inline)]
Enabling AppleScript makes automatic testing of the NextStep user interface
easier.

See
http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=9f94c709b1bb29e275fe6546d22c58a78072672f
for details.

    -- Anders Lindgren
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18283; Package emacs. (Wed, 25 Nov 2015 14:08:02 GMT) Full text and rfc822 format available.

Message #13 received at 18283 <at> debbugs.gnu.org (full text, mbox):

From: Anders Lindgren <andlind <at> gmail.com>
To: 18283 <at> debbugs.gnu.org
Subject: More information.
Date: Wed, 25 Nov 2015 15:07:00 +0100
[Message part 1 (text/plain, inline)]
Additional information:

This change allows applescripts like the following to work:

    tell application "Emacs"
         set the bounds of the first window to {100, 100, 500, 500}
    end tell

Without the change, the following error message is issued:

    test.oas:23:89: execution error: Emacs got an error: Can’t set bounds
of window 1 to {100, 100, 500, 500}. (-10006)

    -- Anders Lindgren
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18283; Package emacs. (Tue, 01 Dec 2015 03:33:02 GMT) Full text and rfc822 format available.

Message #16 received at 18283 <at> debbugs.gnu.org (full text, mbox):

From: Keith David Bershatsky <esq <at> lawlist.com>
To: Anders Lindgren <andlind <at> gmail.com>
Cc: 18283 <at> debbugs.gnu.org
Subject: #18283; Feature Request; OSX;
 add -- <key>NSAppleScriptEnabled</key> <string>YES</string>
Date: Mon, 30 Nov 2015 19:32:44 -0800
Anders:

I built Emacs --with-ns this evening with "1c25d3712e52cf91f7ca38984aa409e62bd35511".

I did not see `<key>NSAppleScriptEnabled</key> <string>YES</string>` within `Emacs.app/Contents/Info.plist`; so I added it manually.

Thanks,

Keith




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18283; Package emacs. (Tue, 01 Dec 2015 10:30:04 GMT) Full text and rfc822 format available.

Message #19 received at 18283 <at> debbugs.gnu.org (full text, mbox):

From: Anders Lindgren <andlind <at> gmail.com>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: 18283 <at> debbugs.gnu.org
Subject: Re: #18283; Feature Request; OSX;
 add -- <key>NSAppleScriptEnabled</key> <string>YES</string>
Date: Tue, 1 Dec 2015 11:29:09 +0100
[Message part 1 (text/plain, inline)]
Hi,

First, are you using the "emacs-25" branch? I think this will be merged to
"master" some time in the future, but I don't know when.

I have noticed that the old Info.plist file lives even after a rebuild. Try
to rerun "autogen.sh" and/or delete the Emacs.app directory to see if it
helps.

    -- Anders

On Tue, Dec 1, 2015 at 4:32 AM, Keith David Bershatsky <esq <at> lawlist.com>
wrote:

> Anders:
>
> I built Emacs --with-ns this evening with
> "1c25d3712e52cf91f7ca38984aa409e62bd35511".
>
> I did not see `<key>NSAppleScriptEnabled</key> <string>YES</string>`
> within `Emacs.app/Contents/Info.plist`; so I added it manually.
>
> Thanks,
>
> Keith
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18283; Package emacs. (Tue, 01 Dec 2015 16:53:02 GMT) Full text and rfc822 format available.

Message #22 received at 18283 <at> debbugs.gnu.org (full text, mbox):

From: Keith David Bershatsky <esq <at> lawlist.com>
To: Anders Lindgren <andlind <at> gmail.com>
Cc: 18283 <at> debbugs.gnu.org
Subject: Re: #18283; Feature Request; OSX;
 add -- <key>NSAppleScriptEnabled</key> <string>YES</string>
Date: Tue, 01 Dec 2015 08:52:35 -0800
Yes, I was using the "master" branch.  I tried today using the "emacs-25" branch and the revision is indeed present.  I generally do a fresh download whenever building the "master" branch.

I will check back later in the month to see if the "master" branch receives the revision for this feature request.

Thanks,

Keith

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

At Tue, 1 Dec 2015 11:29:09 +0100,
Anders Lindgren wrote:
> 
> Hi,
> 
> First, are you using the "emacs-25" branch? I think this will be merged to
> "master" some time in the future, but I don't know when.
> 
> I have noticed that the old Info.plist file lives even after a rebuild. Try
> to rerun "autogen.sh" and/or delete the Emacs.app directory to see if it
> helps.
> 
>     -- Anders




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 30 Dec 2015 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 177 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.