We're back! (IN POG FORM)
amule | tee amule.outif [ "0" != "$?" ]; then dialog "$(cat amule.out) 0 0; fi
on run set amulePath to choose file of type "APPL" with prompt "Please select your Amule:" set amulePath to POSIX path of amulePath set amulePath to amulePath & "Contents/MacOS/amule" as text -- show path -- display dialog amulePath do shell script amulePath set the_output to the result -- save output to file set theFileName to (path to desktop folder as text) & "output.txt" try close access file theFileName end try set theFileName to open for access file theFileName with write permission write the_output to theFileName close access theFileName -- display output (optional) -- display dialog the_output default button {"OK"}end run