Passcode for zip file mac

broken image

Now type in the command that will simultaneously compress and password protect the files in. Type in ls to make certain you see your folder. For example, in my instance that would be to type cd.

broken image

Change your directory to the location of your folder. The following article is about protecting a zip file on Mac with password. The terminal Using Spotlight, type in terminal.

broken image

People apply password on their zip files so that nobody can edit or view their precious files without their consent.

broken image

set suffix to 1 set theFileExists to true repeat while theFileExists try set archiveFile to ((container of (item 1 of input) as Unicode text) & archiveFileName) if exists file archiveFile then set archiveFileName to archiveName & suffix & '.zip' set suffix to suffix + 1 else set theFileExists to false end if end try end repeat end tell set itemStr to '' repeat with thisItem in input set itemPath to quoted form of (POSIX path of thisItem) tell application 'Finder' set parentFolder to POSIX path of (container of thisItem as alias) set itemName to name of thisItem set itemStr to itemStr & quoted form of itemName & ' ' end tell end repeat if (the last character of itemStr is ' ') then set itemStr to characters 1 thru ((length of itemStr) - 1) of itemStr as string set zipFile to quoted form of POSIX path of (parentFolder & archiveFileName) set cmd to 'cd ' & quoted form of parentFolder & ' zip -P ' & passwd & ' -r ' & zipFile & ' ' & itemStr & ' -x *. For such, you can actually password protect zip file Mac. On run default button 'OK' with hidden answer) end tell end repeat set archiveName to text returned of dialogResults tell application 'Finder' set archiveFileName to archiveName & '.zip' - Append on a number if file exists.