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


Click here to return to the 'remove resource fork in place' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
remove resource fork in place
Authored by: mickeysattler on Dec 22, '10 04:16:41PM
To strip resource fork data in place with one line in the Terminal, I offer this:

find folder-w-resources -type f -name \*.jpg -exec cp /dev/null {}/..namedfork/rsrc \;
This recursively works in a folder in this directory called "folder-w-resources", finding all things within which are *both* files *and* have names ending in ".jpg", and on those things it copies the null device into the file's resource fork, setting it to a zero-length. Tailor as necessary, make backups beforehand, etc.

[ Reply to This | # ]