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 just installed Dia using macports.

Now, I need to place the shortcut in the Apps folder and also make the executable available in the Spotlight search.

How can I do that?

share|improve this question
up vote 4 down vote accepted

MacPorts installs it's applications by default in /opt/local. dia installs to /opt/local/bin/dia. Since the program is started from the command line and runs in X11, I suggest making an AppleScript program (or use Platypus) to do this for you. You can then save this program in the Applications folder so it can be found using Spotlight.

Sample AppleScript:

do shell script "/opt/local/bin/dia &"

Alternatively, a standalone application has been made by that you can copy right into your Applications folder.

share|improve this answer
Installed the mac installer! Thanks! – zengr Aug 24 '10 at 9:16

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.