Bryan, I am trying to adapt your code to pdflatex. I hope it will work!!!
It seems that putting the option -l at the end was very important. Do you know why? I have to admit that I put these « -c » and « -l » options thanks to other answers, but I don’t know what they are doing. Thanks very much !! Le 14 avr. 2014 à 17:43, Bryan Vines <bkvi...@me.com> a écrit : > Colas, > > If my previous code snippet doesn’t work with pdflatex, NSTask has a > -setEnvironment method; it may allow you to set your task’s environment > variables. > > — > Bryan Vines > > > On Apr 14, 2014, at 10:40 AM, Colas <colasj...@yahoo.fr> wrote: > >> My problem is that I want to launch pdflatex with the -shell-escape option. >> This option allows pdflatex to launch itself other programs. But, when >> pdflatex, in this context (I mean, launched via NSTask), tries to launch gnu >> plot, it fails. Whereas the same commands, typed in a terminal, succeed. >> >> My guess (and others’) is that it is a problem of environment variables. > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com