• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Deleting resource forks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Deleting resource forks (From: garbanzito <email@hidden>)

  • Prev by Date: Re:Date coersion
  • Next by Date: Re: Cocerce Date
  • Previous by thread: Re: Deleting resource forks
  • Next by thread: Re: Deleting resource forks
  • Index(es):
    • Date
    • Thread