I start the terminal and run this
works perfectly every time.exiftool -UserComment /Users/dave/Documents/Testexif/482.jpg > /Users/dave/Documents/TestExif.txt"
How can I use Runprogram to run that in the terminal and the close the terminal?
works perfectly every time.exiftool -UserComment /Users/dave/Documents/Testexif/482.jpg > /Users/dave/Documents/TestExif.txt"
Code: Select all
PathS$ = "/Users/dave/Documents/Testexif/482.jpg"
PathD$ = "/Users/dave/Documents/TestExif.txt"
RunProgram("bash", ~"-c \"exiftool -UserComment '" + PathS$ + "' > '" + PathD$ + ~"'\"", "", #PB_Program_Open | #PB_Program_Read)
Code: Select all
tmp = RunProgram("bash", ~"-c \"find '" + sPath + "' -type f " + printf$ + ~"' 2>&1\"", "", #PB_Program_Open | #PB_Program_Read)