How can I change specific characters in Quark XPress 7

Hello,
How can I change scpecific character in Quark something like this:

tell application “QuarkXPress Passport”
tell document 1
set (every character of every story where it = “č”) to “Å“”
set (every character of every story where it = “Å¡”) to “ø”
set (every character of every story where it = “ž”) to “æ”
set (every character of every story where it = “ć”) to “Ã¥”
set (every character of every story where it = “Ä‘”) to “fi”
set (every character of every story where it = “ÄŒ”) to “Å’”
set (every character of every story where it = "Å ") to “Ø”
set (every character of every story where it = “Ž”) to “Æ”
set (every character of every story where it = “Ć”) to “Ã…”
set (every character of every story where it = "Đ) to “fl”
end tell
end tell

This script work, but not work properly. I want to change all lower “č” to “Å“” characters . My way change all “č” to “Å“” (lower and upper characters).

Thanks for your help.

Best regards.

Sebastjan

Hi Sebastjan:

I’m a little rusty with Quark because I’ve migrated to InDesign but I think this is what you’re looking for. Just enter the search and replace strings as variables. Alternately, you can hard code the strings into the try clause.



set search_string to ""
set replace_string to ""

tell application "QuarkXPress Passport"
	activate
	tell document 1
		try
                       set (text of every story where it is (search_string as text)) to (replace_string as text)
		end try
	end tell
end tell









Hello Harges,
thanks for your help but still isn’t working correctly soot also now changes all letter of lower and of upper.
Best regards.
Sebastjan