I have a v13-based Mac application that’s been happily zipping files for an
email attachment for years. Now, I’d like to add a password (preferably)
zero-length to prevent a certain mail server from trying to read this file. The
current code (that I didn’t write) and that I believe is creating the zipped
file is:
$SourceFile:=Replace string($FilePath;":";"/")
$SourceFile:="/Volumes/"+$SourceFile
$SourceFile:=Substring($SourceFile;Position("/";$SourceFile);Length($SourceFile)-(Position("/";$SourceFile)-1))
$ZipFile:=$SourceFile
$ZipFile:=Substring($ZipFile;1;Length($ZipFile)-3)+"zip"
LAUNCH EXTERNAL PROCESS("ditto -c -k -X --norsrc "+Char(Double
quote)+$SourceFile+Char(Double quote)+" "+Char(Double
quote)+$ZipFile+Char(Double quote);$in;$out;$err)
$ZipFile:=Replace string($FilePath;".xls";".zip")
How do you typically handle creating zipped files, intended to be emailed, on
Mac-based system? How would you add the encryption or password protection to
such a file?
Thanks,
Robert
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************