Steven.Klass@smsc.com wrote:
Hi all,
I am having a problem getting started with tm_dialog. I followed the instructions (intro_to_tm_dialog.mov --
http://macromates.com/blog/archives/2006/10/28/new-dialog-system-for-command...
) but the first error I found was this:
tm_dialog
...
Yeah, many details of using tm_dialog have changed since the screencast. Threw me off at first, too. Perhaps you could comment the screencast with those differences if you get it working? Ideally, Allan would update the blog post itself with those differences as well.
As far as I can recall (in something of a hurry; not re-watching the screencast), the main difference is that you should use the value of the DIALOG environment variable for tm_dialog, e.g.
"$DIALOG" -p '{}' "/my/nib.nib"
In my case, that variable points to "/Applications/TextMate.app/Contents/PlugIns/Dialog.tmplugin/Contents/Resources/tm_dialog".
Also, the command will stall (actually wait for STDIN) if you do not pass it any input properties, so do the above rather than
"$DIALOG" "/my/nib.nib"
Good luck. Might have missed something; let us know if you're successful.