How to give a terminal command an icon?

Discussion in 'Mac Basics and Help' started by fliptomato, Jul 3, 2008.

  1. fliptomato Guest

    #1
    Hello -- I've installed a program on MacPorts (gedit) and I'd now like to assign it an icon that I can dump into my Applications folder. (Instead of running it from the terminal.) How do I do this?

    Actually, while I'm at it, how do I teach Quicksilver to run the program and to use it to open documents?

    Thanks!
    Flip
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    The Dock won't let you put non-applications on the left (or, at least, what it thinks are non-applications). There's a way to fool it though - this also works for your situation.

    Make a small AppleScript in Script Editor. It's going to be very simple, and just serves as a launcher for your MacPorts program.

    Code:
    tell application "Terminal"
    do script "/opt/bin/whatever"
    end tell
    Save this script as an application. You can then drop it in your Applications folder, give it an icon, and QuickSilver should recognize it.

    EDIT: Make sure you replace the whatever with the actual name of the executable.
     

Share This Page