Re: matching strings with accented characters
Re: matching strings with accented characters
- Subject: Re: matching strings with accented characters
- From: Gary Bielby <email@hidden>
- Date: Wed, 06 Apr 2005 08:47:59 +0100
Could be - the original file is done on a unix server, then l use URL
Access Scripting to download the data file from an ftp address with the
following:
tell application "URL Access Scripting"
download (ftpfileName) to file (finderfileName) replacing yes
end tell
But l did copy the file back into the unix serve and vim'ed the file and
it was the same as the original.
l've on OS9 and when l did open the file in SimpleText l got the same
wrong characters that l'm getting in my script.
Wallace, William wrote:
Hmmm. Works fine OMM. How was the text file saved originally? If you open it
in TextEdit or something, are the accented characters really in the file? Is
it possible that the accented characters were stripped out of the file
before your applescript ever got a hold of it?
--
St!ff
On 4/5/05 11:00 AM, "Gary Bielby" <email@hidden> wrote:
hi, l've got a problem trying to match two strings when they have
accented characters in them ;-(
what l'm doing is reading in a text file with the following sub code:
on readInFile(localcntrlFile)
open for access localcntrlFile
set prefsContents to read localcntrlFile as string using
delimiter {return}
close access localcntrlFile
return prefsContents
end readInFile
Each line is returned to a list which is then passed onto a repeat loop
to try and match the strings from the text file on a quarkxpress page,
and if l find a match then replace it with another string.
This works great until l found out that the text file isn't reading
accented characters. Is there any way of reading in accented characters
in the text file?
Regards, Gary.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden