Re: Deleting resource forks
Re: Deleting resource forks
- Subject: Re: Deleting resource forks
- From: garbanzito <email@hidden>
- Date: Thu, 11 Jul 2002 10:46:00 -0600
at 2002 07 11, 01:41 -0700, they whom i call Philip Aker wrote:
It's possible to delete a specific fork. There is a legit call in Files.h:
EXTERN_API( OSErr )
FSDeleteFork( const FSRef *ref, UniCharCount forkNameLength, const
UniChar *forkName );
the name is deceptive. the docs for FSDeleteFork state:
"Any storage allocated to the fork is released. If a given
fork always exists for a given volume format (such as data
and resource forks for HFS and HFS Plus, or data forks for
most other volume formats), this is equivalent to setting
the logical size of the fork to zero."
<
http://developer.apple.com/techpubs/macosx/Carbon/Files/FileManager/File_Manager/Functions/Creating_and__Named_Forks.html>
However one of the most common ways to accomplish the goal on X is
to use a fork-unaware unix utility (as you suggest).
sure, you can simply cp the file -- but such approaches will
also remove other non-fork metadata, such as type & creator.
i took the problem as "how to remove a resource fork of a
file 'in place' and without changing anything else about the
file".
--
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.