find and replace with unicode

hi all
I face this problem … may be cause I am not professional …
the Idea that I ned to change one character in the word , not all or part of the word not all
I follow the simple way like that :

tell application “Adobe InDesign CS4”

--first clear the preferences
set find text preferences to nothing
set change text preferences to nothing

--replaces non breaking space with space
set find what of find text preferences to "x"
set change to of change text preferences to "y"
set myFoundItems to change text

end tell

I need to put the unicode number of the letter … but I don’t know how

It can be 3 letters together… like “abc” and abc can be part of word… but when I change it I need to change the unicode no character
I will tell you why,

in Arabic language the same character have 4 positions and every one have unicode number
when I select to change it change all of it not the fina or the medi one …

hope to find the answer

ahmed alsadr

Model: all Macs
AppleScript: 2.2.1
Browser: Safari 533.22.3
Operating System: Mac OS X (10.8)

Can you not paste the character into your script? Otherwise you might try a GREP find using \x{n}, where n is the Unicode number.

Hi -


id of "abc"
...{97, 98, 99}

and


character id {97,98,99}
..."abc"

…Mick

thank you mike for this help
thank you all
this way … ID is working but in limit way
in eastern key board the character have many position … like start, middle, end , and single… so it is not same like English characters
for example if you use letter id 1601 it gives you the single one … the original character… even if it is in the meddle of the word
I am using FontLab to create the font and VOLT (Visual OpenType Layout Tool ) http://www.microsoft.com/typography/VOLT.mspx to create the unicode map of the font …
I can solve the problem if I got the point … from where this id come…
in the font there is for each character the following:
name, unicode, index, Decimal, hex, Octal and ANSI…
that all what I can get

hope if you like to know any more information ask me