1

I’m working on an installer for a project and I’ve written a post-install script that runs the executable for my project after it’s done.

I want to know the command line argument—or if there is a way—to create an alias for the executable so that the alias will be put on my desktop instead of having to navigate to the folder it’s located in.

1 Answer 1

1

I want to know the command line argument—or if there is a way—to create an alias for the executable so that the alias will be put on my desktop instead of having to navigate to the folder it’s located in.

Yes, you can. In the command line/terminal this is known as creating a symbolic link and this would be done using the ln (make links) command. The general format is like this:

ln -s /path/to/source /path/to/destination/symlink

So in your case, you could do something like this:

ln -s /Applications/My_Great_Application.app ~/Desktop/My_Great_Application.app
1
  • Alias and symlink are technically not the same thing. A symlink will appear in the OS X UI as an alias, but creating an alias from the UI will not make a symlink. However, I think a symlink is the better solution.
    – jornane
    Aug 28, 2015 at 7:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .