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 hack is rather slow (perceived delay 1 sec or so). I mainly wrote it so I don't have to unlearn muscle memory I built up with Carbon Emacs. The actual delay depends a lot on how efficient the copy-on-write forking is (and it appears Darwin does not win a medal here). Also my code is a real hack when it comes to returning the value yielded by the script. > Please use #ifdef NS_IMPL_COCOA (as it's possible to run GNUstep on OS > X) around the C function, but leave the lisp function defined and > return an error and/or a message on non NS_IMPL_COCOA. Hmm. Please only define (fbind) the symbol when it's actually implemented; otherwise the fboundp style hacks don't work any more. Gruesse, Carsten ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emacs-app-dev- mailing list Emacs-app-dev-@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-