Reputation: 31
I made, better I rummage together an AppleScript that results encrypted zip Files. It works except for Applications. If I expand the Archiv it is not an Application anymore. How can I compress valid Applications?
tell application "Finder" set theItem to ((choose file) as alias) set itemPath to quoted form of POSIX path of theItem set fileName to name of theItem set theFolder to POSIX path of (container of theItem as alias) set zipFile to quoted form of (theFolder & fileName & ".zip") display dialog "Enter password" default answer "" buttons {"OK"} default button 1 set thePassword to (text returned of result) end tell set cmd to "zip -P " & thePassword & " -rj " & zipFile & " " & itemPath & " -x *.DS_Store" do shell script cmd
Upvotes: 1
Views: 59
Reputation: 559
Check the -y
option for zip. It may be what you need.
From iPhone: Compressing .app files in command line (Mac OS X) removes CodeSigning
Upvotes: 0