Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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've got a daemon that periodically checks for, and if applicable updates, some software (macports) and I'd like the user to get a GUI indication, using terminal-notifier, when that occurs.

Since daemons don't have access to GUI services, but agents do, I'm wondering if there's a simple way to make them communicate? By simple, I mean scripting or anything that doesn't involve compiling, as I'm not familiar with programming environments for OS X and it seems too daunting at this point, and too big a project for something like this.

share|improve this question
You would need to compile anything that's code related or if you want to create an individual application. Even applescript requires it's code to be compiled into apple events. Would you like to specify what you want a bit more? – theAmateurProgrammer Sep 7 '12 at 9:54
Does it even have to be a daemon? The service in the first question works if I just move it to /Library/LaunchAgents/. – user495470 Sep 7 '12 at 9:59
@theAmateurProgrammer I'm thinking of passing a string on request from the agent. One thing I've been contemplating is to have the daemon drop that string in a file in a directory and have the agent monitor the file using the WatchPaths key. – seron Sep 7 '12 at 11:07
@Lri for macports (which is run by the daemon) to do any updates it needs to run as root. That doesn't work with an agent. – seron Sep 7 '12 at 11:09
You could consider using growl instead of terminal-notifier. – user588 Sep 7 '12 at 23:57

Your Answer


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

Browse other questions tagged or ask your own question.