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