Bei macOS geht es auch wenn man den gesamten Path zum Programm angibt...
Beispiel
Zitat:
/Users/Michael/Daten/Purebasic/displayASM.app/Contents/MacOS/displayASM
Apps... schon geklärt

P.S. Da ich oft ThreadSafe arbeite, habe ich die Compiler-Option "--thread" hinzugefügt.
Code:
; Run the PB compiler to create the ASM code file
program = RunProgram(compilerFilePath$,
#DQUOTE$ + codeFilePath$ + #DQUOTE$ + " --commented --thread --executable " + #DQUOTE$ + exeFilePath$ + #DQUOTE$,
workingDirectoryPath$,
#PB_Program_Open | #PB_Program_Read)
P.P.S Habe mir noch den Compiler Output dazu gepackt, falls der Compiler mit Fehler beendet wird
Code:
; If an error has occurred, output detailed information
If isCompilerError Or asmCode$ = ""
MessageRequester(#ErrorWindowTitle, "Tool could not create the asm output!" + #CRLF$ +
#CRLF$ + #CRLF$ +
"Compiler File Path:" + #CRLF$ + compilerFilePath$ + #CRLF$ + #CRLF$ +
"Compiler Working Dir Path:" + #CRLF$ + workingDirectoryPath$ + #CRLF$ + #CRLF$ +
"Code File Path:" + #CRLF$ + codeFilePath$ + #CRLF$ + #CRLF$ +
"ASM Code File Path:" + #CRLF$ + asmCodeFilePath$ + #CRLF$ + #CRLF$ +
"EXE File Path:" + #CRLF$ + exeFilePath$ + #CRLF$ + #CRLF$ +
"Compiler Output:" + #CRLF$ + compilerOutput$,
#PB_MessageRequester_Error)
End
EndIf
Danke fürs Tool
