Toggling a file's "hidden" status Using Automator, I want to be able to toggle a folder or file's "hidden" status. How is this possible through the command line? (I'm giving the file's directory to the script via a variable.)
chflags hidden /path/to/file


See also:  http://osxdaily.com/2012/07/19/hide-file-mac-os-x-chflags/