2098 Views 3 Replies Latest reply: Sep 6, 2009 10:46 AM by Camelot
How would you enter the password for an encrypted .zip ?
The best you can get is to prompt the user for the password within your script, then pass that to the command line unzip, e.g.:
set theZipFile to (choose file with prompt "Please select the zip file:")
set thePW to text returned of display dialog "Please enter the zip file's password:" default answer "" with hidden answer
do shell script "/usr/bin/unzip -P " & quoted form of thePW & space & quoted form of POSIX path of theZipFile