• 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: How to detect a file has resource fork, or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect a file has resource fork, or not?


  • Subject: Re: How to detect a file has resource fork, or not?
  • From: Walter Ian Kaye <email@hidden>
  • Date: Mon, 15 Mar 2004 00:03:43 -0800

At 03:11p +0800 03/15/2004, Bill didst inscribe upon an electronic papyrus:

Anyone has idea how to detect a file has, or hasn't resource fork, by applescript? The environment is Mac OS X 10.3.2, on HFS+.

This should work on any version of the OS:

if size of (info for f) > (get eof f) then
"has resource fork"
else
"data fork only"
end if

...where f is a file reference.


-boo
_______________________________________________
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: 
 >How to detect a file has resource fork, or not? (From: Bill <email@hidden>)

  • Prev by Date: How to detect a file has resource fork, or not?
  • Next by Date: Re: "Save changes to script" when it terminates?
  • Previous by thread: How to detect a file has resource fork, or not?
  • Next by thread: Re: How to detect a file has resource fork, or not?
  • Index(es):
    • Date
    • Thread