Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create a Mac OS X "Alias" Kind File in terminal?

With the ln command , ln -s ~/dir dir. alias we can alias a file or folder.

Mac OS X also provides a way to create the "Alias Kind" file, by dragging one file while holding the command+option keys.

How can I create such a file in the Terminal?

like image 502
Cooka Avatar asked Feb 15 '12 16:02

Cooka


1 Answers

While the files may look the same in the finder they are very different.

  • ln -s is creating a Unix symbolic link file
  • Finder's option copy is creating a Mac alias file.

To create an alias in a Unix shell one can use the osascript command and call it up like they would an Apple Script to do the same thing.

like image 112
Dru Freeman Avatar answered Oct 18 '22 06:10

Dru Freeman