Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.1 7.2 7.3 7.4 7.5 8.0 8.1 8.2 8.3 8.4 Statistic
Compresses a few files into a zip archive.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|SourceFolder||The native file path to the source folder for files to compress.||"/Users/cs/Desktop/test"|
|ZipFilePath||The native file path to the zip archive.||"/Users/cs/Desktop/test.zip"|
|FileList||The list of relative file names to compress.
Please only ASCII file names.
|Overwrite||Whether to overwrite the zip archive.
Pass 0 to not overwrite an existing file.
Pass 1 to overwrite.
Pass 2 to apend to a zip file.
|CompressionLevel||The compress level from 0 (no compression) to 9 (max compression).
Default is 9.
Returns OK or error.
DescriptionCompresses a few files into a zip archive.
This is a simple function to compress a couple of files.
It does not preserve file permissions on Mac/Linux or other metadata.
And it may not work with non ASCII characters. We use UTF-8 on Mac/Linux/iOS, but there is no guarantee that this will work.
If you need more control over files being added, compression or error checking, please use example projects coming with plugin which use our other zip functions. Or use the shell functions and the zip command line tool.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Compresses some image files:
Compress some images on Windows:
Zip a file on Mac:
Created 16th January 2016, last changed 5th December 2017
Feedback: Report problem or ask question.
MBS FileMaker blog