• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: stripping resource forks from a file.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Write an app that writes an app
      • From: Philip Aker <email@hidden>
    • Re: stripping resource forks from a file.
      • From: Simeon Johnston <email@hidden>
References: 
 >stripping resource forks from a file. (From: Simeon Johnston <email@hidden>)

  • Prev by Date: Re: Need XOR solution
  • Next by Date: Re: Fwd: Bring Finder to Front via ssh?
  • Previous by thread: Re: stripping resource forks from a file.
  • Next by thread: Re: stripping resource forks from a file.
  • Index(es):
    • Date
    • Thread