• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Quark - search and replace.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Quark - search and replace.
      • From: Hans Haesler <email@hidden>
  • Prev by Date: The Pyramid - a challenge...
  • Next by Date: Re: Folder Actions: Use non-scripts?
  • Previous by thread: Re: The Pyramid - a challenge...
  • Next by thread: Re: Quark - search and replace.
  • Index(es):
    • Date
    • Thread