• 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: Deleting resource forks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting resource forks


  • Subject: Re: Deleting resource forks
  • From: Philip Aker <email@hidden>
  • Date: Mon, 15 Jul 2002 05:57:51 -0700

On Sunday, July 14, 2002, at 12:14 PM, garbanzito wrote:

i find filesystem details fascinating, but the main reason i suggested thinking in terms of emptying the resource fork (particularly from a scripting perspective) is that the prototypical file deletion tool, rm, does *not* work well on resource forks. i have gotten confirmation of the unexpected and damaging behavior caused by running rm on anyfile/..namedfork/rsrc. this may simply be a bug in Apple's implementation of BSD access to resource forks, but it seems pretty dangerous.

I do 'man rm' in Terminal and don't see anything related to resource forks or the suggestion that 'rm x/..namedfork/rsrc' would be an approved usage. I don't know where Chris got it from. The actual name of a named resource fork is "RESOURCE_FORK" and the name of the data fork is "" in the calls in Files.h but "..namedfork" seems like it would be a different tactical approach and possibly valid only for packages.

OTOH, in /Developer/Tools there is a utility called RezWack. It might do the job but I can't figure out how to supply the correct args.


I think AppleScript should deal with resource forks.


set r to open resource fork for access "some_file"
set eof r to 0
close access r



Philip Aker
http://www.aker.ca

'
_______________________________________________
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:
    • Re: Deleting resource forks
      • From: garbanzito <email@hidden>
References: 
 >Re: Deleting resource forks (From: garbanzito <email@hidden>)

  • Prev by Date: Re: Closing Classic
  • Next by Date: FMPro to Quark script box bounds problem
  • Previous by thread: Re: Deleting resource forks
  • Next by thread: Re: Deleting resource forks
  • Index(es):
    • Date
    • Thread