Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.4: Securely copy resource forked files between Macs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Securely copy resource forked files between Macs
Authored by: ekc on Mar 03, '07 08:57:54AM
Why not just zip any file before sending, it's quick and foolproof

That will certainly work. I just wanted to point out that by piping your zip output, you can skip the interim step of creating an archive file before copying it.

That said, if you want to create a Finder-style zip archive from the command line, try:

ditto -ck --sequesterRsrc file_path
ditto -ck --sequesterRsrc --keepParent dir_path/

So you only need the --keepParent when you're compressing a folder instead of an individual file.

Expand with…

ditto -xk --sequesterRsrc path/ path/

…or by simply double-clicking in the Finder. (You won't need the --keepParent this time).

[ Reply to This | # ]