/dev/null //Applications/MAMP/htdocs/Swift Document App/Swift Document App.xcodeproj //Applications/MAMP/htdocs/Playground/.build/checkouts/Files/Files.xcodeproj //Applications/MAMP/htdocs/DccumentProject/My File C Program/My File C Program.xcodeproj //Applications/MAMP/htdocs/DccumentProject/Sample Document Project/Sample Document Project.xcodeproj //Applications/MAMP/htdocs/DccumentProject/TestiOSApp/TestiOSApp.xcodeproj //Applications/MAMP/htdocs/DccumentProject/My Screen Saver/My Screen Saver.xcodeproj //Applications/MAMP/htdocs/DccumentProject/My Next File C Program/My Next File C Program.xcodeproj //Applications/MAMP/htdocs/DccumentProject/My C Command Line Project/My C Command Line Project.xcodeproj //Applications/MAMP/htdocs/Swift Command Line/Swift Command Line.xcodeproj //Applications/MAMP/htdocs/Fibonacci/Fibonacci.xcodeproj //Applications/MAMP/htdocs/AudioUnit/Sample Audio Unit/Sample Audio Unit.xcodeproj ini_set('max_execution_time', 60000); $startin="."; if (isset($_GET['startin'])) { if ($_GET['startin'] != '') { $startin=str_replace('+',' ',urldecode($_GET['startin'])); } } $starterforone=""; $two=2; if (isset($argc)) { // osascript -e 'do shell script "/path/to/executable --flag \"argument with spaces\""' //$command="osascript -e 'tell application \"" . $argv[1] . "\""; //" to activate'; $pex=$argv[1]; if ($pex == "script") { $starterforone=$pex . ' ' . $argv[2] . ' '; $pex=$argv[3]; } $command="osascript -e 'tell application \"Terminal\" to do script \"" . $starterforone . "\\" . "\"" . str_replace('"','',$pex) . "\\\""; //" to activate'; for ($ii=$two; $ii<$argc; $ii++) { //$command.=' ' . "\\\"" . $argv[$ii] . "\\\""; $command.=' ' . "" . $argv[$ii] . ""; } $descriptors = [ 0 => STDIN, // Inherit standard input (keyboard) 1 => STDOUT, // Inherit standard output (terminal screen) 2 => STDERR, // Inherit standard error ]; $process=proc_open($command . $dae . "\"'", $descriptors, $pipes); if (is_resource($process)) { $exitCode = proc_close($process); } exit; } if (isset($_POST['execexec'])) { if (isset($_POST['argsare'])) { $pex=str_replace('+',' ',urldecode($_POST['execexec'])); if (strpos('~' . $pex, '~script ') !== false) { $starterforone='script ' . explode(' ',explode('script ', $pex)[1])[0] . ' '; $pex=str_replace($starterforone,"",$pex); } $command="osascript -e 'tell application \"Terminal\" to do script \"" . $starterforone . "\\" . "\"" . str_replace('"','',$pex) . "\\\""; //" to activate'; if ($_POST['argsare'] != '') { //$command.=' ' . "\\\"" . str_replace('"','',str_replace('+',' ',urldecode($_POST['argsare']))) . "\\\""; $command.=' ' . "" . str_replace('"','',str_replace('+',' ',urldecode($_POST['argsare']))) . ""; } passthru($command . "\"'"); //passthru("php " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . "find_xcode_executable.php " . str_replace('+',' ',urldecode($_POST['execexec'])) . ' ' . str_replace('+',' ',urldecode($_POST['argsare'])) . ""); exit; } else { $command="osascript -e 'tell application \"Terminal\" to do script \"\\" . "\"" . str_replace('"','',str_replace('+',' ',urldecode($_POST['execexec']))) . "\\\""; //" to activate'; passthru($command . "\"'"); //passthru("php " . $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . "find_xcode_executable.php " . str_replace('+',' ',urldecode($_POST['execexec'])) . ""); exit; } } $sofarcnt=1; //echo "find " . $startin . " -name '*.xcodeproj' 2> /dev/null"; //exit; $list=str_replace("." . DIRECTORY_SEPARATOR, $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR, shell_exec("cd " . $_SERVER['DOCUMENT_ROOT'] . " ; " . "find " . $startin . " -name '*.xcodeproj' -maxdepth 7 2> /dev/null")); $recs=explode("\n", $list); $selis=""; for ($i=0; $i", "", str_replace('' . (-1 + $sofarcnt),'' . (0 + $sofarcnt),$selis)); } } echo " Xcode project to find executable path - RJM Programming - November, 2026 function displayexec(osel) { if (osel.value.trim() != '') { document.getElementById('execexec').value=osel.value; } } function chkchk(ochk) { var wasv=document.getElementById('execexec').value; var wasav=document.getElementById('argsare').value; if (ochk.checked) { document.getElementById('execexec').value='script log.log ' + wasv; document.getElementById('argsare').value=wasav + ' --flags'; } else { document.getElementById('execexec').value=document.getElementById('execexec').value.replace(/^script\ log\.log /g,''); document.getElementById('argsare').value=document.getElementById('argsare').value.replace(/\ \-\-flags$/g,''); } }

Xcode project to find executable path

RJM Programming - November, 2026



" . $selis . "

Executable path ...Arguments and/or pipes and/or redirects and/or switches and/or Logging ...


"; ?>