本文转载自:www.betterzipcn.com/faq/ty-tjfw.html
BetterZip是一款功能强大的Mac解压缩软件,能够与多方应用程序集成,而这个可以通过增强的AppleScript的支持来实现。在我们安装BetterZip的时候,在步骤中会让我们确认是否勾选“将提取和压缩的服务添加到macOS服务菜单”。
如果没有添加,也可以通过下文的方法实现。
通过自动操作实现
在服务菜单中添加压缩功能
1、打开【自动操作】并选择【快速操作】,这是一个可以添加到访达、触控栏和“服务”载弹的工作流程;
2、运用搜索框找到并双击【运行AppleScript】,在工作流程收到中选择【文件或文件夹】;
3、将白色区域内代码换成:
on run {input, parameters}
tell application “BetterZip”
queued archive input with preset “” show ui yes
end tell
return input
end run
然后键入command+s进行保存,并命名为用betterzip压缩即可,然后我们就可以在服务菜单中看到压缩选择。
在服务菜单中添加解压功能
步骤一二和添加压缩功能一样,在步骤三中将代码换至:
on run {input, parameters}
tell application “BetterZip”
queued unarchive input with preset “” show ui yes
end tell
return input
end run
然后键入command+s进行保存,并命名为用betterzip解压即可。
然后就可以实现快速解压缩了。