Ask Different is a question and answer site for power users of Apple hardware and software. 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'm working on MacOSX environnement, but I would like to tweak it a bit. I have a few bash scripts I used in Linux to retrieve infos such as IP, average ping and so, that I would like to be displayed in a persistant place. (I.E. the doc, or the menu bar).

I did not found any documentation on this topic, can someone provide a few link or the name of the correct man page to read about that?


share|improve this question

migrated from Aug 1 '11 at 4:49

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

The Dock and menu bar are both for use by applications only. Dock icons are managed by the NSDockTile class, and items on the right side of the menu bar are managed by NSStatusItem. If you want to display this information in one of those places, you'll have to create an application to do so. (If you can't convert your bash scripts to C/Obj-C, you can use NSTask to run them.)

share|improve this answer
I could have converted them to Obj-C, but hadn't because I wanted to keep most of my script compatible with a classic Linux/UNIX environnement. I hoped that there were a hook somewhere to acces them through SHELL. – caffein Aug 1 '11 at 10:13

I just found this: Works like a charm.

share|improve this answer

How about a small tool: shellwrangler? -

share|improve this answer
I haven't tried this tool yet, but it looks useful, and like it would fit the asker's requirements just fine. Why all the downvotes? Is it secretly terrible? – eimajenthat Oct 6 '15 at 23:04
Hmm... Jonathon Livingston only has two posts, and they're both linked to shellwrangler. That's kind of weird. – eimajenthat Oct 9 '15 at 14:05
Downvotes most likely are from competitors in this particular area. In terms of posts: you’re right, not much is there as I was advertising it to public. Shellwrangler is totally free as I made if for my self because I was not able to find similar tool at that time. – Jonathan Livingston Nov 10 '15 at 11:35

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.