Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to have a way of outputting a terminal command, like:

$ cat | awk '{ print $1 }' > dashboard_widget

Into a dashboard widget, not necessarily the text output of a command. Maybe a "iTerm2" dashboard that only outputs but doesn't get input from the user.

What I want to do with this is to have the output of a emacs buffer with my todo list.

share|improve this question
What did you try so far? – Daniel Beck May 2 '12 at 15:32
Don't know where to start. Already googled by didn't find any solution. – licorna May 2 '12 at 16:38
My suggestion: Set up a cron or launchd job to periodically transform your todo list like in the example you provided into an output file. Display that file's contents in a widget by getting a script's (cat comes to mind) output. This should help. Dashcode is part of Xcode. – Daniel Beck May 2 '12 at 17:02
up vote 3 down vote accepted

There are dashboard widgets that execute shell scripts and display the output.


Your script can call emacs in batch mode to preprocess and export your into plain text mode, or you can use your awk preprocessing instead.

share|improve this answer
Thanks Juancho, that's what I was looking for – licorna May 3 '12 at 20:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.