How do I make symbolic links invisible in the Finder?

Solution 1:

To hide:

chflags -h hidden <symlink>

To show again:

chflags -h nohidden <symlink>

Solution 2:

Reading fail.

-P                                # perform action on symlink instead of following it

This flag has strange indenting in SetFile -h, and I must have just ignored it assuming it was related to the -m date flag.

So,

SetFile -P -a V my_symlink