A quick rundown on how to use TextMate with Appcelerator’s Titanium SDK and, if you’re lucky enough to be in the Platino beta program, with Platino as well
Get the “Titanium Tools TextMate Bundle” from here; https://github.com/KONDENSATOR/titools-tmbundle
Do this by typing, or copy/pasting, the following line in terminal;
git clone git://github.com/KONDENSATOR/titools-tmbundle.git ~/Library/Application\ Support/TextMate/Bundles/titools.tmbundle
The bundle will then be installed and you should restart TextMate or reload bundles.
If you try to build initially, you will get errors – in order to prevent that from happening, in TextMate go to Bundles / Titanium Tools / Edit Configuration, which will open config.yaml.
Here, assuming you are building for the Xcode simulator, you will set;
titanium_path: /Users/peachpellen/Library/Application Support/Titanium
Now, this information will change over time – if you want the iPad simulator, you’d say “ipad” rather than iphone; the iOS version is also going to change over time, although currently it’s 6.1 and of course, you want tim_version (Titanium Mobile version) to match whatever version you’re using at the time.
Once you’ve done this you will be able to build and run your app in the Xcode simulator by clicking Bundles / Titanium Tools / Build and Run — of course, this is not the most convenient – you can make it the default action when you press CMD+R by opening the bundle editor (Bundles / Bundle Editor / Show Bundle Editor) and clearing the shortcut keys under the Xcode bundle.
I hope those of you who still use TextMate (as I do) find this useful!
Special thanks to Alejandro Jimenez of DunkelGames for helping me with this.