Re: Deleting resource forks
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.