User Guide

298 Chapter 15 Scripting the Visual Tools Object Model
ZIPProvider object
The ZIPProvider object is the general purpose PKZIP services object used by
HomeSite+ for Dreamweaver MX for ZIP file composition and extraction. You can
use this object in your VTOM scripts for low-level PKZIP operations from within
HomeSite+ for Dreamweaver MX. Because Macromedia uses a licensed control for
its ZIP operations, you cannot use
ZIPProvider outside of HomeSite+ for
Dreamweaver MX.
Properties
CompressionLevel
Syntax CompressionLevel: Integer
Description Sets and gets the compression level use to compress the archive file. You can set the
value from 0 to 9; 0 represents no compression, 1 is fastest compression, and 9 is the
slowest but most size-efficient compression.
ExtractionDir
Syntax ExtractionDir: OleVariant
Description Sets and gets the directory path where the files are extracted from an existing archive
file using the Extract method.
FileCount
Syntax FileCount: Integer (read-only)
Description The number of elements in the archive.
Overwrite
Syntax Overwrite: WordBool
Description Boolean. Sets and gets whether the newly extracted files overwrite any existing file in
the ExtractionDir directory.
Password
Syntax Password: OleVariant
Description Sets/gets the password for the archive file. Set this property when extracting
password protected files or to password- protect files in an archive file that you just
created.