Re: stripping resource forks from a file.
Re: stripping resource forks from a file.
- Subject: Re: stripping resource forks from a file.
- From: garbanzito <email@hidden>
- Date: Wed, 7 Aug 2002 19:21:44 -0600
at 2002 08 07, 16:08 -0500, they whom i call Simeon Johnston wrote:
Unless of course anyone here know's a way around this I'd like to
strip the resource fork out of the file before it is commited to the
cvs server. It would also be nice to reformat it as *nix text
rather than mac (basically changing the line endings from carriage
return to line feed).
we had a thread on this earlier.. the following will leave
the file in place and preserve all HFS+ metadata:
do shell script "cat /dev/null >yourfile/..namedfork/rsrc"
to convert line endings have a look at the "tr" shell commend
--
steve harley email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.