Re: Deleting resource forks
Re: Deleting resource forks
- Subject: Re: Deleting resource forks
- From: garbanzito <email@hidden>
- Date: Wed, 10 Jul 2002 19:44:40 -0600
at 2002 07 10, 16:23 -0400, they whom i call Geoffrey F. Green wrote:
However, I still am interested whether there's a way to delete a
file's resource fork.
technically, i'm not sure the resource for can actually be
deleted. it will always exist, though it may be empty. so
the task is to make the resource fork have no contents. on
Mac OS X this will do it:
set my_file to choose file
do shell script "cp /dev/null '" & POSIX path of my_file & "/..namedfork/rsrc'"
(you can use /rsrc instead of /..namedfork/rsrc, but the
former is deprecated)
--
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.