<HTML><FONT FACE=arial,helvetica><FONT SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">Does anyone have a one-line test for whether a file is a mc or rr stack on a Mac?<BR>
<BR>
switch the platform <BR>
case"Win32"<BR>
return (char -3 to -1 of tFilePath is ".mc") or (char -4 to -1 of tFilePath is ".rev")<BR>
break<BR>
case "MacOS"<BR>
return fileType(tFilePath) is in "MSTKMCRD,whateverRRis" -- ????<BR>
break<BR>
end switch<BR>
<BR>
The only things I can think of are<BR>
[1] a 'try/go stack' and on failure assume it isn't. Not very elegant!<BR>
[2] if "#!/bin/sh" is in url("binfile:"&tFilePath). Again, not very elegant and a waste of RAM.<BR>
<BR>
Oh... and it needs to work with 2.4.1.<BR>
<BR>
Mucho thanks.<BR>
<BR>
/H</FONT></HTML>