Quark - search and replace.
Quark - search and replace.
- Subject: Quark - search and replace.
- From: "Ruby Madraswala" <email@hidden>
- Date: Fri, 22 Apr 2005 16:24:01 -0400
- Thread-topic: Quark - search and replace.
Hi
Can anyone tell me what's wrong this script, all I am trying to do is replace words with correct accents. it replaces apart of the word or overwrites part of previous word. Each search/replace a different behavior.
Os 10.3.9
Quark 6.5
tell application "QuarkXPress"
activate
set SearchTextList to {"revls", "travls", "cordón", "elástico", "pantalón",
"rápidamente", "máquina", "sección", "pequeños", "posición", "botón", "hilván"}
set replaceTextList to {"revZs", "travZs", "cord-n", "el?stico", "pantal-n",
"r?pidamente", "m?quina", "secci-n", "peque-os", "posici-n", "bot-n", "hilv?n"}
repeat with i from 1 to (count of items in SearchTextList)
set SearchText to (item i of SearchTextList) as string
set replaceText to (item i of replaceTextList) as string
tell document 1
try
set (every text of every story where it is SearchText)
to replaceText
end try
end tell
end repeat
end tell
thanks
Ruby
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden