显示所有 Dropbox 冲突副本

Nat*_* G. 5 dropbox macos

我想通过某种方式从我的 Dropbox 文件夹中查看所有冲突的副本。

我个人主要使用 Mac,但我欢迎 Windows 和 Linux 解决方案。

Nat*_* G. 2

由于我找不到在 Mac 上执行此操作的好方法,因此我使用该find命令和一些 AppleScript 编写了自己的脚本。

将其粘贴到 AppleScript 编辑器中并将其另存为应用程序:

set conflictedFiles to do shell script "cd ~/Dropbox; find -L . \\( -path \"*.dropbox*\" -prune \\) -o \\( -name \"*conflicted*\" -print \\)"
set fileList to paragraphs of conflictedFiles as list
repeat with currFile in fileList
  set currPath to (path to home folder as string) & "Dropbox" & POSIX file (characters 3 thru -1 of (currFile as string) as string)
  tell application "Finder" to make new Finder window to currPath
end repeat
Run Code Online (Sandbox Code Playgroud)

该脚本查找所有冲突的文件,并为每个文件打开一个 Finder 窗口。
如果您认为存在很多冲突,请小心使用此功能;您的桌面可能会被窗户覆盖!

请注意,如果您的 Dropbox 文件夹中有符号链接,这仍然可以正常工作。