InDesign Search & Replace

Hi All

When I open InDesign dictionary, I found there is a search and replace command, and when I try to write a code using it then my application shows “Rajeev” not recognized by InDesign.

Can anybody tell me how can I use this command through Applescript only, because I have never try Java script.


tell application "InDesign CS"
set myDocument to active document
tell myDocument
search text "Rajeev" for plain text
case sensitive is true



end tell
end tell 

Hi All
I got succes, see the code below:


tell application "InDesign CS"
	
	set myDocument to active document
	tell myDocument
		search for "Rajeev" replacing with "Kumar" with case sensitive and whole word
	end tell
end tell