|
|
remove resource fork in place
Since the resource fork is stored in a pseudo-file with filename given by appending /..namedfork/rsrc to the original filename, the following alias can be used to remove the resource fork from the original file (without making a new copy as in the hint):
resource fork docs
Reference to Apple's (brief) documentation on the "/..namedfork/rsrc" trick:
Inside Mac OS X: Performance - Using Pathnames
more explanation
I realized I should explain how this works.
remove resource fork in place
To strip resource fork data in place with one line in the Terminal, I offer this:
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.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|