Mac电脑上的文件拷贝到移动硬盘,有时候会出现“xx.xx已被OS X使用,无法打开”的问题。
解决办法:
1、打开终端
2、在终端里输入 xattr -l ,然后把出问题的文件拖动到 "xattr -l 后面",回车;
localhost:~ Kingdev$ xattr -l
localhost:~ Kingdev$ xattr -l /Users/liuxianzhi/Desktop/屏幕快照\ 2016-03-12\ 21.37.25.png
3、然后,第一行会有 com.apple.FinderInfo 这串字符。复制这串字符,回车;
localhost:~ Kingdev$ xattr -l /Users/liuxianzhi/Desktop/屏幕快照\ 2016-03-12\ 21.37.25.png com.apple.FinderInfo: 00000000 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000020 com.apple.metadata:kMDItemIsScreenCapture: 00000000 62 70 6C 69 73 74 30 30 09 08 00 00 00 00 00 00 |bplist00........| 00000010 01 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 |................| 00000020 00 00 00 00 00 00 00 00 00 09 |..........| 0000002a com.apple.metadata:kMDItemScreenCaptureGlobalRect: 00000000 62 70 6C 69 73 74 30 30 A4 01 02 03 04 23 40 72 |bplist00.....#@r| 00000010 D0 00 00 00 00 00 23 40 76 C0 00 00 00 00 00 23 |......#@v......#| 00000020 40 77 D0 00 00 00 00 00 23 40 38 00 00 00 00 00 |@w......#@8.....| 00000030 00 08 0D 16 1F 28 00 00 00 00 00 00 01 01 00 00 |.....(..........| 00000040 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 |................| 00000050 00 00 00 00 00 31 |.....1| 00000056 com.apple.metadata:kMDItemScreenCaptureType: 00000000 62 70 6C 69 73 74 30 30 59 73 65 6C 65 63 74 69 |bplist00Yselecti| 00000010 6F 6E 08 00 00 00 00 00 00 01 01 00 00 00 00 00 |on..............| 00000020 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000030 00 00 12 |...| 00000033
4、接下来,输入新的命令 xattr -d com.apple.FinderInfo 再把问题文件拖进去,问题就解决了
localhost:~ Kingdev$ xattr -d com.apple.FinderInfo /Users/liuxianzhi/Desktop/屏幕快照\ 2016-03-12\ 21.37.25.png
参考文章:原文链接
时间: 2024-10-25 17:34:21