• 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: garbanzito <email@hidden>
  • Date: Sun, 14 Jul 2002 13:14:10 -0600

at 2002 07 14, 06:18 -0700, they whom i call Philip Aker wrote:
I have received a reply from an Apple Engineer (Mark Day) and his comments are quoted at the end of this message. I think you will see from them that FSDeleteFork() _effectively_ deletes the fork.

yeah, to _effectively_ delete the fork, you make it empty ...

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.

doing this will make the file disappear from Finder, though
the name (for a while at least) can't be used by another
file. while the file is still accessible from the shell, the
permissions are mangled and using some shell commands on the
file will have unexpected behavior. after a while
(unconfirmed) the data fork will disappear too.

confirmed on 10.1.4 & 10.1.5.

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

  • Prev by Date: Re: Writing to a file
  • Next by Date: Re: Writing to a file
  • Previous by thread: Re: Deleting resource forks
  • Next by thread: Re: Deleting resource forks
  • Index(es):
    • Date
    • Thread