Since BetterZip will quit two seconds after all script operations are done, don’t use a too long polling interval. The call to output returns the produced archives. When doing a queuedArchive or queuedUnarchive, you get back an id that you can use in subsequent calls to progress which returns the progress in percent (0.100). Here’s a short example that compresses the filename array items.
![open and compress with queue betterzip open and compress with queue betterzip](https://www.macping.com/wp-content/uploads/2013/01/7-Compress-Files.jpg)
![open and compress with queue betterzip open and compress with queue betterzip](https://ventasoftware.com/wp-content/uploads/2018/08/IZArc.jpg)
You can also script BetterZip with Python (and other languages) through the use of the ScriptingBridge. Then select BetterZip from the list and click Choose.
![open and compress with queue betterzip open and compress with queue betterzip](https://mac.eltima.com/images/upload/commander/articles/bestarchmac/betterzip.jpg)
For the complete scripting definition, open Script Editor and choose File > Open Dictionary… from the menu. The base for all automation of BetterZip is its AppleScript support.
OPEN AND COMPRESS WITH QUEUE BETTERZIP HOW TO
See this step-by-step tutorial on how to setup a Hazel action that compresses files with BetterZip. Hazel is a powerful control center for many file automation tasks and it plays very well together with BetterZip. Choose “Add this Preset to Dropzone 3…” and a sheet will drop down in which you may edit the name for the action. Go to BetterZip > Preferences > Presets, choose the preset for which you want to add a Dropzone Action, and click the tools button (with the little gear) below the presets list. The creation of Dropzone actions works just like that for LaunchBar. Choose “Add this Preset to LaunchBar 6…” and a sheet will drop down in which you may edit the name for the action. Go to BetterZip > Preferences > Presets, choose the preset for which you want to add a LaunchBar Action, and click the tools button (with the little gear) below the presets list. The LaunchBar actions for BetterZip are installed more like services than like the Alfred workflows, because they are preconfigured for one specific preset. LaunchBar ActionsĪnother popular productivity tool is LaunchBar. Choose one and BetterZip will compress or extract the items. Choose the BetterZip action and you will be presented with a list of presets. “Extract with BetterZip” for archives and “Compress with BetterZip” for other files and folders. This will add two File Actions to Alfred.
OPEN AND COMPRESS WITH QUEUE BETTERZIP INSTALL
If you haven’t installed it during the first start of BetterZip, you can install the Alfred workflows at any time by selecting BetterZip > Install Alfred Workflows from the menu. Remove the service by moving it to the trash from this folder. To make it easy to remove services again the tools button menu also has a command “Reveal Services Folder in Finder”. Choose “Add this Preset to the Services Menu…” and a sheet will drop down in which you may edit the name for the service. Go to BetterZip > Preferences > Presets, choose the preset for which you want to add a service, and click the tools button (with the little gear) below the presets list. You can enable the BetterZip share extension in System Preferences > Extensions > Share Menu.Īnyway, BetterZip still allows you to add as many services as you wish to the Services menu. BetterZip offers a contextual menu extension in Finder giving you one-click access to all your presets, and the BetterZip share extension gives you the option to compress documents from within other apps using the Share menu/button. Services are no longer as important as they once were. The same works for extraction, of course. Using Automator you can easily create BetterZip droplets, small apps onto which you can drop files and folders to compress using a pre-configured preset. It needs files and folders as input and returns error codes as output (0 means no error). This action will test the input archives and return whether any errors were found. It needs one or more archives as input and returns the extracted files and folders (only the top level items) as output. This action can be configured by selecting one of your current extract presets. It needs files and folders as input and returns the created archives as output.
![open and compress with queue betterzip open and compress with queue betterzip](https://i.ytimg.com/vi/pSEm1hdFdHk/maxresdefault.jpg)
This action can be configured by selecting one of your current save presets. Automator ActionsīetterZip adds three actions to Automator: Automation and Integration with Other Productivity ToolsīetterZip integrates nicely with macOS and supports some of the most widely used third-party productivity apps.