But from what I've heard the "archive" command in the Finder is still using Apple's home-rolled zipping solution not /usr/bin/zip.

ditto preserves resource forks, if you add the --rsrc switch. Using AppleScript:


do shell script ("ditto -c -k --rsrc " & sourcePath & " " & savePath)

paths above must be quoted POSIX paths

I don't know how a PC would handle such a file; haven't sent one. Probably be OK, but might also include a superfluous little resource file.

I have used the above, in a Perform AppleScript step, to zip files automatically before inserting them into FileMaker container fields. Seemed like a good way to save space.

There is a command to unzip, with the resource fork also:
do shell script ("ditto -x -k --sequesterRsrc --rsrc " & zFile & " " & posDT)

I don't know if both the resource switches are needed; not that much of a geek :-]

--
Fenton Jones
FileMaker Pro Developer
San Diego, CA
619-692-1529

--
To unsubscribe: send an email to <[EMAIL PROTECTED]>
FMPexperts is hosted by Ironclad Networks <http://www.ironclad.net.au/>

Reply via email to