Forum > General
[SOLVED] MAC and Tprocess or TprocessUTF8
(1/1)
cpalx:
Hello,
i am using Tprocess to execute external application, my code works perfectly in windows and Linux but in Snow leopard fails, does not find the executable, a simple code (looking just for mac)is :
-------------------------------------------
TheProcess := TProcessUTF8.Create(nil);
with TheProcess do begin
CurrentDirectory:='/Volumes/xortix/LazarusProjects/IA/; // The path of the binary
CommandLine:='IAlogin'; //The binary
try
execute;
except on e:Exception do
ShowMessage(e.Message+#13+e.ClassName);
end;
end;
-------------------------------------------
i tried too:
CurrentDirectory:='/Volumes/xortix/LazarusProjects/IA/IAlogin.app/Contents/MacOS/;
Laksen:
Try
ApplicationName:='IAlogin';
or
CommandLine:='./IAlogin'; //The binary
cpalx:
ok, i will try, thanks
cpalx:
i found the solution,
currentdirectory := /path/*.app/Contents/MacOS
commanline := currentdirectory + AppName
Just bundle MAcos
Navigation
[0] Message Index