Is this possible to get the return value from a Foo.app launched with a bash script? For instance below i always get the 0 value (while i use “setApplicationReturnValue” in my code).
open -W Foo.app --args bar echo "$?"
My assumption is that it is not possible without calling directly the binary (e.g. Foo.app/Contents/MacOS/Foo). Is there any obvious trick that i’m not aware?