Hi Benjamin, I’ve had to change your code to make it compilable again.
The constructor for the FuncRequest with char* for args was removed. To construct a docstring instead one has to know the encoding of the arguments. You’ve converted the result of the FuncRequest dispatch to UTF-8. So I presumed the input is UTF-8 too. Am I right? Stephan Am 02.07.2016 um 08:30 schrieb Stephan Witt <sw...@lyx.org>: > > commit 1440b6a2fc6d39782a486f045d72506eb9215712 > Author: Stephan Witt <sw...@lyx.org> > Date: Sat Jul 2 08:29:39 2016 +0200 > > Compile fix after change 4b64aaf, replace missing constructor for C-string > with docstring variant > --- > src/support/AppleScriptProxy.cpp | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/support/AppleScriptProxy.cpp > b/src/support/AppleScriptProxy.cpp > index b40a145..8ff1d76 100644 > --- a/src/support/AppleScriptProxy.cpp > +++ b/src/support/AppleScriptProxy.cpp > @@ -27,7 +27,7 @@ using namespace lyx; > > extern "C" LyXFunctionResult applescript_execute_command(const char *cmd, > const char *arg) { > LYXERR(Debug::ACTION, "Running command [" << cmd << "] with arguments > [" << arg << "]"); > - FuncRequest fr(lyxaction.lookupFunc(cmd), arg); > + FuncRequest fr(lyxaction.lookupFunc(cmd), from_utf8(arg)); > fr.setOrigin(FuncRequest::LYXSERVER); > DispatchResult dr; > theApp()->dispatch(fr, dr);