LoginSignup
5
3

More than 1 year has passed since last update.

Macでファイルを選択すると「"xxx”は壊れているため開けません。 ゴミ箱に入れる必要があります。」と出る

Posted at

Macでファイルを選択すると「"xxx”は壊れているため開けません。 ゴミ箱に入れる必要があります。」と出る

“kyomi_arukamo.png”は壊れているため開けません。 ゴミ箱に入れる必要があります。

スクリーンショット 2022-11-26 0.05.39.png

Application-->terminalから以下を実行すると出なくなる(壊れてる属性をクリアする?)

xattr -rc *.png

-rcこちらの記事によると、対象ファイル/ディレクトリのすべての属性を削除する。(ディレクトリの場合は)これを再帰的に行うという意味である模様。

     5番目の構文では、-c オプション("clear")を指定すると関連する値を含む、
     すべての属性が削除されます。

     -r  引数のファイルがディレクトリの場合、ディレクトリ内の全てのファイルに
         再帰的に適用されます。

参考

5
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3