[platypus-dev] Re: Using input box in bash script



On Nov 29, 2005, at 10:08 PM, Methnen (AKA Jamie) wrote:
Ok I have a shell script that I want to use an inputbox in. This is the code I have....

        cd="CocoaDialog.app/Contents/MacOS/CocoaDialog"

rv=`$1/BufferCups.app/Contents/Resources/$cd inputbox --text "Buffer Cups Job Copy Menu" --informative-text "Type a number and press 'OK'." --button1 "OK"`

Theproblem is thes cript doesn't do anything when it gets to this. It doesn't open an input box. Am I doing something wrong?

The documentation is a bit out of date. rv shouldn't have to include the name of the application bundle -- so that should be rv=`$1/ Contents/Resources/$cd inputbox...


Cheers,

Sveinbjorn Thordarson

Other related posts: