Posts tagged: MACOS

Obscure "svn mv" problem solved

I banged my head against this one for a while before figuring it out, so I’m posting the solution – for my own future reference if nothing else.

I’ve been working on extending Textmate’s Markdown language bundle. The development versions of the bundles are stored in a repository managed by Subversion.

I noticed that the bundle’s name started with a lowercase letter, unlike the other bundles, so I did a quick svn mv to fix it:

PowerBook "Safe Sleep"

One of the first things that won me over to OS X was the near-instantaneousness with which you could wake a machine up from sleep. For a longtime PowerBook user who had always found Sleep to be a killer feature – even back when waking up took 30 seconds or more – this was a great bonus.

Sleep is known as “Standby” in the Windows world, but for some reason a lot of people prefer “Hibernate,” perhaps because it predates Standby or perhaps because it’s safer – all data is saved to disk, so you’re covered even if you completely lose power.

TextMate: Bundles of goodness

Warning: this is a long post about… a text editor.

screen shot I’m very late to the TextMate party. Like many other people, I heard the buzz when it came out last fall, checked it out, and went away interested but unimpressed.

At the time I knew that BBEdit’s long stint as my primary text editor was coming to a close. For its replacement I wanted an app that felt cleaner; was Cocoa, not Carbon; didn’t have a dozen years of accumulated cruft in the menus; and didn’t have language-specific features that felt tacked-on. For shell tasks I continued to use and enjoy Emacs, but I was pining for a great native editor on the desktop.

LaunchBar 4.1 beta 1

LaunchBar bar

Version 4.1b1 of LaunchBar has been released, with a slew of new features. I like the new file manipulation commands:

  • Copy and Paste (Command-Shift-C): Transfers the current selection (e.g. the selected file path, postal address, URL, etc.) to the frontmost application with a single keystroke.

  • Copy File Contents (Command-Option-C): Copies the contents of the selected file to the clipboard. Works with most text and graphic file formats.

  • Copy and Paste File Contents (Command-Shift-Option-C). Useful for inserting text and graphic snippets in the currently edited document.

WebKit screen-grabbers

Missing in action for many months after a server hard drive failure, the webkit2png utility by Paul Hammond reappeared in August. It uses WebKit to automatically render PNG images of web pages. It beats regular screen grabs mainly in its ability to render full-length images – as if you had an infinitely tall monitor. By default it produces three versions: an actual-size “clipped” version, an actual-size long version, and a thumbnail-size long version (here’s an example). It requires that you have PyObjC.

Useless script: View180

Upside down For reasons that will remain mysterious, I was asked about the possibility of an OS X program or script that would allow you to quickly rotate the contents of any window 180 degrees. I had written some image processing scripts before, but nothing involving screen capture, so I got interested. I came up with this Applescript, View180, which if nothing else is a neat demo of a couple of undeservedly obscure OS X commands, sips and screencapture.