Re: How to detect a file has resource fork, or not?
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.