• 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
Re: Search and replace script (Quark)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search and replace script (Quark)


  • Subject: Re: Search and replace script (Quark)
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 03 Oct 2007 10:24:46 -0700
  • Thread-topic: Search and replace script (Quark)

Hey Kevin,

At first glance here's what I notice about your script:


> script 1

> tell application "QuarkXPress"

> open file "wc_marine_b"

--here Quark is expecting a file reference or an alias.
--It can't identify your file by name. try Something like

open file "HD:Afolder:wc_marine_b" would work, or

open (choose file)

> script 2

> tell "wc_marine_b"

-- in this case Quark is looking for a more fully formed document reference.

Tell document 1
--or this might work

Tell document  "wc_marine_b"

> try
> set every text of stories whose it = searchTextList to replaceTextList
--It may have been email formatting, but the on error needs to be on a new
line.

on error number -10006 -- search string not found -- handle the error, as
   HTH,

ES
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: cleaning my desktop
  • Next by Date: Re: cleaning my desktop
  • Previous by thread: Search and replace script (Quark)
  • Next by thread: [ANN] Smile 3.2
  • Index(es):
    • Date
    • Thread