Re: Deleting resource forks
Re: Deleting resource forks
- Subject: Re: Deleting resource forks
- From: Andy Wylie <email@hidden>
- Date: Thu, 11 Jul 2002 18:59:28 +1200
on 11/7/02 1:44 PM +1200: garbanzito wrote:
>
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)
and classically with Akua...
---------------
set someFile to choose file with prompt "Zap Resource Fork"
set x to open fork from someFile with write access and resource fork
size fork x to 0
close fork x
_____________________________ Andy
_______________________________________________
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.