zipuncompress
zipuncompress
SOURCE
,
DESTINATION

The zipuncompress statement uncompresses a file or an entire folder from a zip file (using ditto shell tool).

Parameters

This statement has two parameters:

source – zip file to uncompress.

destination – name (and optionally path) of the output file or folder. If this parameter is omitted, the output will be in the same folder as the zip file.

Description

This statement uncompresses a file or an entire folder using the ditto shell tool.

The simplest way to use this statement is to uncompress in the same folder. If the file *Favorite Pony.zip" is in the same folder as the current database, you can uncompress the contents of the file into the same folder (the name will be taken from the contents of the zip archive.

    zipuncompress "Favorite Pony.zip"

If the zip file is in a different folder than the current database, you can specify both the path and the file name, as shown below.

    zipuncompress "~/Pictures/Utah/Favorite Pony.png"

You can also specify a completely different location and name for the uncompressed file. This example saves the uncompressed file in a subfolder of the Documents folder.

    zipuncompress "Favorite Pony.zip","~/Documents/Archive/Favorite Pony.png"

Note: This statement is very similar to the uncompress statement. The significant difference is that the zipuncompress statement can only uncompress a .zip archive file, while the uncompress statement can also produce .tar.gz and .tar.bz2 archives. The zipuncompress statement is designed for archives created with the zipcompress statement, or files that have been compressed by the Finder.

See Also

- archivecontents( -- lists the contents of a compressed archive in *.zip*, *.tar.gz* or *.tar.bz2* format.
- compress -- compresses a file or an entire folder.
- uncompress -- uncompresses a `.zip`, `.tar.gz` or `.tar.bz2` file into a file or an entire folder.
- zipcompress -- compresses a file or an entire folder into a zip file (using ditto shell tool).

History

Version | Status | Notes
10.2 | New | New in this version.