HATTRIB(1)

πŸ’– HATTRIB(1) πŸ’–

okay bestie, welcome to hattrib, a lil member of the hfsutils squad ✨ she's the one whose whole job is changing HFS file or directory attributes. type, creator, invisible, locked, blessed β€” she does the whole glow-up. let's get into it πŸŽ€


✨ SYNOPSIS ✨

hattrib [-t TYPE] [-c CREA] [-|+i] [-|+l] hfs-path [...]

hattrib -b hfs-path

two whole forms, two whole vibes. pick ur fighter πŸ’…


🌸 DESCRIPTION 🌸

so hattrib lets you alter HFS file attributes. that's the whole gig. here's the tea on form one πŸ‘‘

  • the MacOS-defined type and creator attributes get set with the -t and -c flags respectively (yes bestie, in that order, type then creator, they're a matching set 🫢)
  • a file's invisible flag? set it with +i, clear it with -i
  • a file's locked flag? set it with +l, clear it with -l
and here's the part where you gotta pay attention fr fr: every single file you name on the command line gets those attributes, no questions asked β€” doesn't matter what attributes it already had, they're getting overwritten, no cap πŸ’€. BUT β€” any attribute you didn't mention on the command line is left completely unchanged. so it's a targeted makeover, not a full reset ✨

now. form two 🌈

in the second form you pass a single HFS pathname that points at a folder, using the -b option, and that folder becomes "blessed" as the MacOS System Folder. iconic behavior honestly πŸ‘‘

for that blessing to actually be useful, the folder should contain valid Macintosh System and Finder files. like, bless a folder with nothing in it and... girl, what are we doing πŸ™ˆ

lowkey important note: the locked attribute and the "blessed" attribute have little consequence to hfsutils. so don't come crying to hfsutils about them, she simply does not care πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, bestie, they're part of the family 🫢


πŸŽ€ FILES πŸŽ€

  • $HOME/.hcwd

that's where she keeps her current working directory lore ✨


πŸ‘‘ AUTHOR πŸ‘‘

Robert Leslie <rob@mars.org>

we stan πŸ’–


and that's the whole page!! this one's from the <strong>HFSUTILS</strong> manual, dated <strong>30-Aug-1998</strong> β€” an absolute vintage queen, older than most of us but still serving βœ¨πŸ’… mwah, bye bestie!! πŸŽ€πŸ’–