> Kerry...
> Have you thought of the PRegEx xtra? I haven't used it but it's
> supposed to
> be good for that sort of stuff (search/replace)
>
Doh! I have it, too. That would speed things up.
Thanks Neil, Christopher, Howdy, Thomas, for the tips. I had a method
written, but was looking for a single command. For example, in Pascal,
you can do something like "if ["a..z"] in someVar then
convertUC(someVar)". That would look for *any* lower-case character in
someVar. The PRegEx is the closest to that.
Here's the method I wrote--maybe somebody will find it useful. Side
note--it's an ugly hack for Novell. If you don't set up Novell in a
certain way, you can't use high ANSI characters in file names--it works
on Mac, but not on Windows.
on tryConvertedSpanishFile srcPath, destPath, fName
if kPathDelimiter = "" then --we're on a Mac, and this won't work
return TRUE -- file copy failed
end if
-- check for ������������
spanishChars = ["�", "�", "�", "�", "�", "�", "�", "�", "�", "�",
"�", "�"]
asciiChars = ["A", "a", "E", "e", "I", "i", "O", "o", "U", "u", "N",
"n"]
-- make a copy of the file name for the local machine
originalName = fName
-- check each character of the file name for a high ANSI character
strLen = fName.length
repeat with i = 1 to strLen
if charToNum(fName.char[i]) > 127 then -- we found a high ANSI
character
charPos = spanishChars.getOne(fName.char[i]) -- get its position
in the Spanish list
if charPos > 0 then
substituteChar = asciiChars.getAt(charPos) -- substitute the
ASCII equivalent
put substituteChar into char i of fName
end if
end if
end repeat
-- try to copy the file with the ASCII equivalent name from the Novell
server.
-- Note that we save it on the local system with the original name
return baCopyFile (srcPath & fName, destPath & originalName,
"Always")
end tryConvertedSpanishFile
Cordially,
Kerry Thompson
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]