Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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 stackoverflow.com Aug 1 '11 at 4:49

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

1 Answer 1

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

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.