[TxMt] Re: QT call results in 0

Schell efsubenovex at gmail.com
Fri Jul 24 06:29:35 UTC 2009


Yeah, it's got to be an environment issue. The weird thing is that I haven't
changed anything in my startup scripts. I'll figure it out when I have a
little more time. Thanks!

On Thu, Jul 23, 2009 at 9:06 PM, Matt Neuburg <matt at tidbits.com> wrote:

> On 7/23/09 7:19 PM, in article
> 65f5d7330907231919l1003f57cg6bc351b23f65139d at mail.gmail.com, "Schell"
> <efsubenovex at gmail.com> wrote:
>
> > 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".
>
> Okay, well, I don't really do bash scripting, but I just tried making a new
> bash script in TextMate and I ran this:
>
> 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 testing);
> echo $fullProjectPath
>
> And here's the output after I interact with the dialog:
>
> /Users/mattleopard/Desktop/testing.tmproj
>
> That looks right. So what causes this difference? The version of TM?
> Something about the environment where the script is being run? m.
>
> --
> matt neuburg, phd = matt at 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 at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>



-- 
Schell Scivally
efsubenovex at gmail.com
http://blog.efnx.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20090723/5f2633df/attachment.html>


More information about the textmate mailing list