Hi,
first of all tm_dialog is ... I don't find words for that. Thanks A LOT!!!!!!
tm_dialog will revolutionize my work ;)
----
I just played with it to use it with Hypersearch.
I followed your instructions but I have a tiny problem:
I created a nib test1 with an TextField and two check boxes.
Everything is fine except there is no return for the TextField. Only my checkboxes appears. If I add a second TextField to the nib then the value of the FISRT TextField is returned but unquoted.
What I did wrong? For checking this I attach two small nibs 'test1' with one TextField and 'test2' with two TextFieldes.
Here's the terminal output: l:~/Documents Bibiko$ tm_dialog ~/Documents/test1.nib {sw1 = 1; sw2 = 1; } l:~/Documents Bibiko$ tm_dialog ~/Documents/test2.nib {searchString = aaa; sw1 = 1; sw2 = 1; }
I couldn't find my error.
I use TM Cutting-Edge build 1305 downloaded one hour ago.
Thanks in advance,
Hans
Hi,
Everything is fine except there is no return for the TextField. Only my checkboxes appears. If I add a second TextField to the nib then the value of the FISRT TextField is returned but unquoted.
(Forget my stupid question about quotes, please ;) )
I also realized that there is a different behavior for 'select all' the content within the TextField. If I select the content of that TextField then it will be outputted if not nothing appears.
So I did the following: Add a NSbutton with a keyboard shortcut for 'RETURN' and binds it to performClose. If I fill the TextFields and press RETRUN then I see the result.
NEXT PROBLEM: Then I tried to use tm_dialog within a Bundle's command but I didn't find a way to do this properly.
If I write e.g.:
DIA=$(tm_dialog -cm my.nib)
the dialog comes up but I have no chance to select anything?? and the return is (NULL)
If I don't use the modal flag then I even cannot close the dialog at all. The only way is from Terminal to kill this process ??
Any thoughts?
Thanks,
Hans
STOP
I found my fault!
I set a wrong alias. I set it to 'tm_dialog' within the plug-in folder!! Not to $TM_SUPPORT_PATH/bin.
SORRY!!!
Hans
On 30. Oct 2006, at 14:40, Hans-Joerg Bibiko wrote:
I found my fault!
I set a wrong alias. I set it to 'tm_dialog' within the plug-in folder!! Not to $TM_SUPPORT_PATH/bin.
Okay, not sure if this solved all your problems. There is one current problem with the plug-in: if you have values in a text field and these have not been “committed”, which they are if you remove focus from that text field (or press return in the field) then they won’t appear in the output.
I will however checkin a fix for this later today (and switch to the XML output).