Code: Select all
Terminal = RunProgram("/Applications/Utilities/Terminal.app", "cal", "", #PB_Program_Open|#PB_Program_Read)
Output$ = ""
If Terminal
While ProgramRunning(Terminal)
Output$ + ReadProgramString(Terminal) + Chr(13)
Wend
Output$ + Chr(13) + Chr(13)
Output$ + "Exitcode: " + Str(ProgramExitCode(Terminal))
EndIf
MessageRequester("Output", Output$)
Displaying a calendar is just a test, my final code will actually execute a different command. I just can't figure out why it won't open the Terminal. Any help would be appreciated!
P.S. If there's a topic, or somewhere in the help file, that solves my problem, feel free to point me in that direction. I usually hate asking questions because I feel like the answer has been given multiple times before. In this case, I honestly couldn't find a solution that solved my problem.