Mac OSX aliases are not symbolic links. Trying to read one will probably crash your code.
is_alias(path)
Returns true if a file is an OSX alias, false otherwise.
create_osx_alias(filename, aliasname)
creates an alias pointing to file.
resolve_osx_alias(path)
Returns the full path of the file pointed to by the alias.
When run from command line accept one argument, an alias, and resolve it.
Based on this blog post and code by : Scott H. Hawley: https://drscotthawley.github.io/Resolving-OSX-Aliases/
- System requirement: Python 3.x
usage: osxaliases.py [-h] file
Resolve OSX alias
positional arguments: file alias file to resolve
optional arguments: -h, --help show this help message and exit
See UNLICENSE file