looks like my previous post was incorrect.

There is a --password option where you can specify the password to be 
used


On Mon, 9 Apr 2018 16:32:29 -0500, Robert ListMail via 4D_Tech wrote:
> 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:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
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:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to