<HTML><FONT FACE=arial,helvetica><FONT SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">>The test is needed to establish if a file is mc/rr as opposed to other file <BR>
>formats before opening it. Looks like the detailedFiles is the answer.<BR>
<BR>
<BR>
My thanks to RG@4W via K@ST... A function that returns the Mac fileType of a file:<BR>
<BR>
<BR>
function fwMacFileType pPath<BR>
local tSaveDir, tShortFileName, tFileList, tLine, tType<BR>
put the directory into tSaveDir<BR>
set the itemdel to "/"<BR>
put the last item of pPath into tShortFileName<BR>
delete last item of pPath<BR>
set the directory to pPath<BR>
put the detailed files into tFileList<BR>
put lineoffset(cr&urlEncode(tShortFileName)&comma, cr&tFileList&comma)into tLine<BR>
if tLine > 0 then<BR>
set the itemdel to comma<BR>
put last item of line tLine of tFileList into tType<BR>
end if<BR>
set the directory to tSaveDir<BR>
return tType<BR>
end fwMacFileType<BR>
<BR>
For MC, the type&creator is "MCRDMSTK", and for Rev it's "REVORSTK"<BR>
<BR>
Very neat.<BR>
<BR>
/H<BR>
_________________________________________________<BR>
Hugh Senior<BR>
The Flexible Learning Company<BR>
Consultant Programming & Software Solutions<BR>
Fax/Voice: +44 (0)1483.27 87 27<BR>
Email: mailto:h@flexibleLearning.com<BR>
Web: www.flexibleLearning.com</FONT></HTML>