Ah, okay, sorry guys. The code involved is ANY CocoaDialog calls. For example:

[bash script]

fullProjectPath=$(CocoaDialog filesave \
            --text "Please name your project and select a folder to save it into" \
            --title "Create New Project" \
            --with-extensions .tmproj \
            --with-file "$defaultProjectName");

[/bash script]

fullProjectPath's value is now "QT call results in 0".

This happens in all bundles, or so it seems. It goes further than just shell scripts in that TM's internal functions are affected [although I'm guessing that these internal functions also use CocoaDialog]. Attached is a screen shot, and linked [http://slaughterballoon.com/textmate/Picture_2.png] just in case. I hope this helps clear up the matter.

On Thu, Jul 23, 2009 at 6:07 PM, Matt Neuburg <matt@tidbits.com> wrote:
On 7/23/09 2:44 PM, in article
65f5d7330907231444p4a647c7ie2e69ab0adc139e3@mail.gmail.com, "Schell"
<efsubenovex@gmail.com> wrote:

> Haha, thanks though.
>
>> Yeah, every time I ask a CocoaDialog / ui.rb question, no one seems to have
>> the answer.

Well, some things depend on how you ask the question. The O.P. didn't post
any code and he didn't say what precisely he was trying to get CocoaDialog
to do. That makes it kind of hard to answer. m.

--
matt neuburg, phd = matt@tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings




_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate



--
Schell Scivally
efsubenovex@gmail.com
http://blog.efnx.com