Skip to content

Comment on Show HN: Set OS X files and folders to self-destruct based on tag

Comments

This is a pretty good idea. Add the ability to tag a file/files with TTL from the CLI as well.

Source code: https://github.com/tdlm/os-x-self-destruct

Add the ability to tag a file/files with TTL from the CLI as well.

You can use the OS's standard facilities to do what you want: see `xattr` and `mdfind`.[1] There's also `tag`[2]

  1 http://apple.stackexchange.com/questions/93979/are-the-osx-mavericks-tags-visible-from-the-command-line
  2 https://github.com/jdberry/tag

I'm using tag, too, but it's in C, so, I suggested xattr to the author. I submitted an issue already (first!): https://github.com/tdlm/os-x-self-destruct/issues/1

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.