Thanks for all the help.
The web site supplied by Dennis is great.
David's i=bs.readShort ... solution is what I put in my check function. It seems to work great. I realize someone could fake file header information, but they could put jpg as an extension when it is not, or they could set MacType to JPEG when it is not. So I guess I'll let OpenAsPicture be the final check.

Once Again,  Thanks for the help

Lou



On Jan 15, 2007, at 7:17 PM, Louis G5 Batayte wrote:

MacOS X 10.4.8 RB 2007R1

I let the user select a folder, then I search through the items in that folder looking for jpeg files. Right now I am looking at the extension to determine if it is a jpeg or not. But I am trying to determine if a file without an extension is a jpeg file. If I take a jpeg file with an extension, and use the MacOS System "Get Info" to delete the extension, the System "Get Info" still displays the "Kind" as a jpeg file. But I cannot figure how to determine this from within RealBasic. When I look at the contents of the folderitem, for the file without the jpeg extension, in debug mode, there is nothing there to indicate the file type/kind. Any suggestions?

Thanks,
Lou

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to