Hello!
I want to write extensive rules for "Search and Replace", that Apple Script can apply to my document or marked text. The rules have to include breaking and unbreaking spaces, especially "thin spaces" (Apple + 7 / Apple + 7 + Alt) and "flexible spaces" (Shift + Apple + Space / Shift + Alt + Apple + Space), as well on the "Search" side as on the "Replace" side. If I could include rules for kerning certain pairs or strings of characters, that would be welcome, too.
One rule of my list should be worked on at a time, going on to the next task only after having completed searching the document once.
Simple example:
Search: "," Replace: "\f,"
Search: "y\f," Replace: "y,"
Now I should have flexible spaces before a comma everywhere but after a "y".
I work with QuarkXPress 7.5 on a Mac with OS X 10.4.11. I have tried the script "Suchen/Ersetzen" (German for "Search/Replace") by Hans Haesler (http://www.fachhefte.ch/apple_scripts/mac_os_x_d/tiger/qxp_7x/), but it did not work. Maybe I did something wrong.
Are there any other tools out there to deal with my problem or can someone give me a hint?
Thanx a lot in advance,
HV-G