• 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: Bill <email@hidden>
  • Date: Tue, 16 Mar 2004 00:21:53 +0800

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.

Thanks, it works :)


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


  • Prev by Date: I introduced High-speed Mt.Fuji to Frank Casanova II
  • Next by Date: 10.3 server q
  • Previous by thread: Re: 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