• 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 a resource fork
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deleting a resource fork


  • Subject: Re: deleting a resource fork
  • From: garbanzito <email@hidden>
  • Date: Thu, 11 Jul 2002 15:00:26 -0600

at 2002 07 10, 16:08 -0700, they whom i call Chris Janton wrote:
Quick question: Is there a way to delete the resource fork of a file?

Don't try this at home!

Why not use the wonderfully dangerous shell command of

rm name-of-file/..namedfork/rsrc

that was the first thing i thought of, however for some
reason it seems to delete the whole file -- sort of. here's
a log of the very strange behavior that leads me to believe
using rm on resource forks is a bad idea:

% ls -al test test/..namedfork/rsrc
-rwxr-xr-x 1 garbanzi unknown 3492864 Jul 11 14:44 test
-rwxr-xr-x 1 garbanzi unknown 256887 Jul 11 14:44 test/..namedfork/rsrc
% rm test/..namedfork/rsrc
[note: file "test" disappears from Finder]
% ls -al test test/..namedfork/rsrc
ls: test/..namedfork/rsrc: No such file or directory
---------- 1 garbanzi unknown 3492864 Jul 11 14:44 test
% ls -al | grep test
[note: test is not found]
% rm test
% ls -al test
ls: test: No such file or directory
%

--
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.

References: 
 >Re: deleting a resource fork (From: Chris Janton <email@hidden>)

  • Prev by Date: Naming items in InDesign
  • Next by Date: Re: Naming items in InDesign
  • Previous by thread: Re: deleting a resource fork
  • Next by thread: New Appleworks document
  • Index(es):
    • Date
    • Thread