Can bash script be converted into a very small PPC application?
I am trying to find a simple way to convert a bash script into a compact PPC application for Tiger and Leopard without third party applications or AppleScript.
The are many web pages saying that the following works and probably a similar number saying that it does not.
mkdir -p foo.app/Contents/MacOS
mv foo.command foo.app/Contents/MacOS/foo
chmod +x foo.app/Contents/MacOS/foo
It seldom works for my test script:
#!/bin/bash
say ping
I normally get the following on Tiger: 'You cannot open the application "foo.app" because it is not supported on this system' and a similar message on Leopard.
I can sometimes get it working for a while if I modify an established working application but playing with it or rebuilding launch services database stops it working.
I would like to know why it fails. Is it that the hardware and software can support it but launch services and/or some other security inhibits it?
Can bash script be converted into a very small PPC application?