How do I remove the “extended attributes” on a file in Mac OS X?

前端 未结 5 1703
时光说笑
时光说笑 2020-12-02 03:22

I have an AppleScript script that runs a stress test. Part of the test is to open, save, and close certain files. Somehow, the files have picked up some \"extended attribute

5条回答
  •  温柔的废话
    2020-12-02 03:56

    Try using:

    xattr -rd com.apple.quarantine directoryname
    

    This takes care of recursively removing the pesky attribute everywhere.

提交回复
热议问题