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

Click here to return to the 'Swapping forks from the command lne' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Swapping forks from the command lne
Authored by: sabi on Dec 06, '01 12:13:49PM

I wrote a function for zsh that does something similar:

swapforks () {
cp $1/data $
cat $1/rsrc >| $1/data
cat $ >| $1/rsrc
rm $

so you just tell a file to 'swapforks', and it exchanges the data and
resource forks. That works for me until I can afford the upgrade to
Resorcerer 2.4.

Another good one is to clear the type/creator of a file:

ClearHFSMetadata: aliased to SetFile -t '' -c ''

which you sometimes want to do, and File Buddy doesn't (or didn't) let
you do this.

[ Reply to This | # ]