Re: [Emacs.app dev]: An issue related to emacsclient

2008-07-22 Thread Carsten Bormann
On Jul 22 2008, at 03:56, Adrian Robert wrote: Curious though, how slow really is the exec osascript approach? The patch is a lot of code to replace the 3-line lisp that Carsten posted. (Though I think it's nicer to have it internal.) In my typical use (getting text strings out of apps) my

Re: [Emacs.app dev]: An issue related to emacsclient

2008-07-21 Thread David Reitter
Adrian, On 21 Jul 2008, at 16:44, Gilbert Harman wrote: A followup. Carbon Emacs has a command do-applescript that I was using to get the focus back to the email program alpine. the patch below works for me. Any comments? Otherwise I'll check this in. - David *** nsfns.m 19 Jul

Re: [Emacs.app dev]: An issue related to emacsclient

2008-07-21 Thread David Reitter
On 21 Jul 2008, at 18:14, David Reitter wrote: the patch below works for me. Any comments? Otherwise I'll check this in. Incidentally, do we need #if MAC_OSX around this? NSAppleScript is probably not a NextStep API, is it? - D smime.p7s Description: S/MIME cryptographic signature

Re: [Emacs.app dev]: An issue related to emacsclient

2008-07-21 Thread Adrian Robert
... + // script returned an AppleScript result + if ((typeUnicodeText == [returnDescriptor descriptorType]) || + (typeUTF16ExternalRepresentation +== [returnDescriptor descriptorType]) || + (typeUTF8Text == [returnDescriptor descriptorType]) || +

Re: [Emacs.app dev]: An issue related to emacsclient

2008-07-21 Thread David Reitter
On 21 Jul 2008, at 21:56, Adrian Robert wrote: Looks good -- Cocoa even! ;) OK, checked in with NS_IMPL_COCOA. Curious though, how slow really is the exec osascript approach? The patch is a lot of code to replace the 3-line lisp that Carsten posted. (Though I think it's nicer to have