Archive

Archive for the ‘OSX’ Category

who’s a lazy bum?

May 25th, 2008 Bob No comments

I’ve always been happy to read that laziness in a programmer is a virtue. How much work is it really to open iTunes, make sure the Music library is selected, click File->Import, navigate to the desktop, select the folder that contains the songs I want to add, pick that folder, wait for the import to finish, switch back to the desktop, and finally drag that folder of songs into the trash?

Too much work for me. Just typing it all tires me out.

So here’s my first Automator workflow, saved as a Finder plugin.

You can download it here.

Open it, then File->Save As Plugin…, name it, ‘Import into iTunes’, and now it’s just right-click on that folder of songs, then More->Automator->Import into iTunes.

Time for a snack.

Categories: OSX, programming Tags:

making pageup/pagedown work in emacs in OS X Terminal.

September 13th, 2005 Bob No comments

Out of the box, the pageup and pagedown keys don’t do what I want when I’m running emacs in the OS X Terminall app. They page up and down through the Terminal buffer, rather than the emacs buffer.

Bother you, too? Here’s how to fix it, with thanks to Mac OSX Hints:

$ tcsh
% set echo_style=both
% echo -n "\e[5~ | pbcopy
% exit

In Terminal Inspector (Terminal/Window Settings/Keyboard),

  • highlight page down;
  • press Edit button;
  • select “send string to shell:” from Action list;
  • tab into input field;
  • paste (apple-v);
  • press OK;
  • highlight shift page down;
  • press Edit button;
  • select “scroll to next page in buffer” from Action list;
  • press OK;
  • highlight shift page up;
  • press Edit button;
  • select “scroll to previous page in buffer” from Action list;
  • press OK;
  • press “Use Settings as Defaults” button.
Categories: OSX Tags: