由于我找不到在 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 文件夹中有符号链接,这仍然可以正常工作。
归档时间: |
|
查看次数: |
958 次 |
最近记录: |