Re: [gtk+osx] Working .app bundles
Status: Beta
Brought to you by:
jralls
From: Dan C. <da...@da...> - 2004-01-05 23:57:10
|
On 5/1-2004, at 23:50, John-Michael Mulesa wrote: > I made the file, but it doesn't want to run (did do chmod +x): > > /Users/jm/Desktop/gimp-1.2.app/Contents/MacOS/gimp-1.2: Command not > found. > > When I try to run it. Here's a simpler, more generic shell script: It will execute the file named <file>-bin where <file> is the name of the script file. I did a quick test of it, and it should work fine with arguments containing space and so on. ====== #!/bin/zsh # Strip the process serial number from the given arguments. args=() for arg in $argv; [[ $arg != -psn<-> ]] && args+=$arg exec $0-bin $args ====== - Dan Christiansen |