runprogram Command in Mac OS

Mac OSX specific forum
JohnF
New User
New User
Posts: 6
Joined: Thu Dec 14, 2023 8:47 am

Re: runprogram Command in Mac OS

Post by JohnF »

Hello Piero,

Yes, the code you provided solved the problem. From this I now understand what I was missing. I believed that sending the Commandline$ directly to exiftool within RunProgram (which works in windows) should work the same way in MacOS. It simply does not. I also believed that sending the Commandline$ would be equivalent to sending the string through WriteProgramStringN. This also seems not to be true. Finally, I now understand that sending the full command string to "/bin/zsh" is the same as executing it in the Terminal - which was exactly what you where trying to get across.

It would be great if there was some solid documentation for this - both for Windows as well as for MacOS. Maybe there is, but try as I might, I could not find it.

Now that you've cracked the code, I will also also go back to my first program and bring it over to MacOS as well. I'll be traveling the end of this week for a several weeks so expect it to go quiet, but if I have additional questions, I'll certainly post again.

Warmest Regards from Redwood City, California,
John
User avatar
Piero
Addict
Addict
Posts: 865
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: runprogram Command in Mac OS

Post by Piero »

JohnF wrote: Thu Apr 11, 2024 7:45 am Warmest Regards from Redwood City, California,
John
Again, you are very welcome!

PS: Don't tell Fred, but I still consider it as a BIG BUG of RunProgram :wink:
User avatar
Piero
Addict
Addict
Posts: 865
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: runprogram Command in Mac OS

Post by Piero »

Added Some Tips
Post Reply