IDCS3 to IDCS2 [AS]

Hi All,

I have created the below script in InDesign CS3. But I want it to convert in InDesign CS2. I don’t have InDesign CS2. If anyone can help me out. I tried to do it, but not able to convert because the system having InDesign CS2 installed is belongs to production team.


tell application "Adobe InDesign CS3"
	set find text preferences to nothing
	set change text preferences to nothing
	set find what of find text preferences to " ^p"
	set change to of change text preferences to "^p"
	set case sensitive of find change text options to false
	set include footnotes of find change text options to false
	set include hidden layers of find change text options to false
	set include locked layers for find of find change text options to false
	set include locked stories for find of find change text options to false
	set include master pages of find change text options to false
	set whole word of find change text options to false
	tell document 1
		set myFoundItems to change text
	end tell
end tell

Thanks
Rajeev

Hi All,

Finally I am able to solve it. I am able to find and replace as per my requirement, but for nonbreaking hyphen & descretionary hyphen it is not working. Can any one suggest me what to do.


tell application "Adobe InDesign CS2"
	set find preferences to nothing
	set change preferences to nothing
	set find text of find preferences to "^~"
	set change text of change preferences to ""
	tell document 1
		set myFoundItems to search whole word no case sensitive no
	end tell
	set find preferences to nothing
	set change preferences to nothing
	set find text of find preferences to "^-"
	set change text of change preferences to ""
	tell document 1
		set myFoundItems to search whole word no case sensitive no
	end tell
	set find preferences to nothing
	set change preferences to nothing
end tell

Thanks
Rajeev