During my "gentle" introduction to Terminal in OSX, I was introduced to perl. perl #!ed my brain so hard %-|, that without much introduction, I chose to learn python because I thought it gave so much better ! for the $ (bang for the buck) without help from hard core programmers. =^D Now am trying to learn textmate and got stumbled on Ruby. Sure it sounds a lot of fun to learn a new language.
But is there a way to use UI in python scripts within TM?
May be my question is a bit precocious because I just found a textmate podcast series on itunes that has 2 podcasts on dialog2 in TM.
Oliver Taylor-2 wrote:
On Jun 1, 2009, at 5:12 PM, MDX-LE wrote:
Could someone tell me how to install dialog2 available at http://macromates.com/svn/Bundles/branches/WIP/Tools/Dialog2/ Dialog2 @ macromates.com
I believe Dialog has been renamed UI and is already included in TextMate at TextMate.app/Contents/SharedSupport/Support/lib/ui.rb
You can call UI with something like: require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb'
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 7 Jun 2009, at 04:17, MDX-LE wrote:
[...] But is there a way to use UI in python scripts within TM?
May be my question is a bit precocious because I just found a textmate podcast series on itunes that has 2 podcasts on dialog2 in TM.
The dialog system shown in that screencast provides a CLI interface, meaning that it is fully usable from Python, since Python can run shell commands.
Main reaosn we tend to stay away from Python for TextMate commands is that the interpreter has a slow startup time on a cold cache, this is very noticable when typing away and some editing operation takes half a second because the Python interpreter has to load all its imports or whatever it is doing.