Re: Deleting resource forks
Re: Deleting resource forks
- Subject: Re: Deleting resource forks
- From: garbanzito <email@hidden>
- Date: Mon, 15 Jul 2002 11:00:57 -0600
at 2002 07 15, 05:57 -0700, they whom i call Philip Aker wrote:
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.
Chris & i were not talking in terms of Carbon internals.
..namedfork/rsrc is documented here:
<
http://developer.apple.com/techpubs/macosx/Essentials/Performance/FilesNetworksThreads/Using_Pathnames.html>
it's presented as a file to the BSD subsystem, so it was
only natural to consider using rm on it. after it failed, my
research led to the insight that it would be better to think
in terms of emptying the resource fork, not deleting it.
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.
from the limited info i have on RezWack, it can't do it. but
the solution i posted earlier works just fine (cat
/dev/null).
I think AppleScript should deal with resource forks.
i agree it would be nice to have raw access to the resource
fork from within AppleScript. high-level access is already
available via the Satimage OSAX. unfortunately i couldn't
get AppleScript to recognize "..namedfork/rsrc", so it seems
to be available only to the BSD subsystem.
--
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.