On 5 Oct 2005, at 15:23, Neil Lee wrote:
So, and I'll say it again, documentation! Give me a printable set of docs that I can take with me on the metro and I'm yours for life.
OK, here's a small start that will hopefully get Neil and others going until something better comes around. ;-)
-- Unzip the attached "Create TextMate Print Documentation.tmbundle.zip" file -- double-click the "Create TextMate Print Documentation.tmbundle" and TM will install it for you directly -- Restart TM -- Go to Automation -> Run Command -> Create TextMate Print Documentation -> Create Print Documentation -- Open Help -> TextMate Help and then you should see a "Single Page Print Version" link in there. Click on it and print.
Quick hack that works great on my system, and should hopefully work just as well on other systems.
Alternatively, you can Cmd+Click the TM icon in the Dock, right-click the TM app icon, and select "Show Package Contents", Navigate to Contents/Resources/English.lproj/TextMate Help Book/ and drop the two documents inside this .zip file in there. But then they would be replaced each time you update the main TM app.
PS. The Ruby Code Quality Control Committee should probably NOT look too closely at my code in the command ;-)
Kind regards,
Mats
---- "TextMate, coding with an incredible sense of joy and ease" - www.macromates.com -
It looks like you code assumes that TextMate is in the users applications folder rather then the root level one
On 10/6/05, Mats Persson mats@imediatec.co.uk wrote:
On 5 Oct 2005, at 15:23, Neil Lee wrote:
So, and I'll say it again, documentation! Give me a printable set of docs that I can take with me on the metro and I'm yours for life.
OK, here's a small start that will hopefully get Neil and others going until something better comes around. ;-)
-- Unzip the attached "Create TextMate Print Documentation.tmbundle.zip" file -- double-click the "Create TextMate Print Documentation.tmbundle" and TM will install it for you directly -- Restart TM -- Go to Automation -> Run Command -> Create TextMate Print Documentation -> Create Print Documentation -- Open Help -> TextMate Help and then you should see a "Single Page Print Version" link in there. Click on it and print.
Quick hack that works great on my system, and should hopefully work just as well on other systems.
Alternatively, you can Cmd+Click the TM icon in the Dock, right-click the TM app icon, and select "Show Package Contents", Navigate to Contents/Resources/English.lproj/TextMate Help Book/ and drop the two documents inside this .zip file in there. But then they would be replaced each time you update the main TM app.
PS. The Ruby Code Quality Control Committee should probably NOT look too closely at my code in the command ;-)
Kind regards,
Mats
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com http://www.macromates.com -
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 6 Oct 2005, at 18:38, Samuel DeVore wrote:
It looks like you code assumes that TextMate is in the users applications folder rather then the root level one
Nope it should look for it in two locations.
1. /Applications/Textmate.app/ and then if IT can't find it there, 2. it assumes that it's in your ~/Applications/Textmate.app/ location.
It could be better written, but that's what it is right now. IF your app is installed elsewhere, then it won't work I guess :)
Tested with app in both locations on my system, and it worked fine.
Kind regards,
Mats
---- "TextMate, coding with an incredible sense of joy and ease" - www.macromates.com -
On Oct 6, 2005, at 3:33 PM, Mats Persson wrote:
On 6 Oct 2005, at 18:38, Samuel DeVore wrote:
It looks like you code assumes that TextMate is in the users applications folder rather then the root level one
Nope it should look for it in two locations.
- /Applications/Textmate.app/ and then if IT can't find it there,
- it assumes that it's in your ~/Applications/Textmate.app/ location.
It could be better written, but that's what it is right now. IF your app is installed elsewhere, then it won't work I guess :)
Tested with app in both locations on my system, and it worked fine.
It's not as fast as you might like, but you could try running
mdfind 'kMDItemFSName = "TextMate.app" and kMDItemContentType = "com.apple.application-bundle"'
to find all installed copies of TextMate (you'd probably just want to take the first entry found). Also it would only work on Tiger.
It would be even better to simply query LaunchServices, but that requires writing a command-line utility with Xcode to be able to do. It's certainly feasible, it just may be outside the scope of what you're trying to do.