• 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
QuarkXPress 4.11 script breaks in 6.5 - Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QuarkXPress 4.11 script breaks in 6.5 - Why?


  • Subject: QuarkXPress 4.11 script breaks in 6.5 - Why?
  • From: Dan Feather <email@hidden>
  • Date: Mon, 24 Apr 2006 13:46:54 -0500
  • Thread-topic: QuarkXPress 4.11 script breaks in 6.5 - Why?

Why won't this script line work w/ QuarkXPress 6.5? It worked fine w/ 4.11.

-- script snip:
tell application "QuarkXPress"
 tell document 1
   set every text of every story where it is varSearch to varReplace
 end tell
end tell
--

The error is -10006

If I replace the variable names with actual strings, it works fine. Thinking
the problem had something to do with that, I tried the following:

set {varSearch, varReplace} to {"WWW-", "ASD-"}
set every text of every story where it is varSearch to varReplace

. . . and it worked fine.

I compared (using "log class of..") that command with mine and found
variables were all of class string. (Mine are set by display dialog, so I
use a second line to change Unicode text to string.)

Anyway, it's taking me to the edge!

Many thanks,

Dan


 _______________________________________________
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: QuarkXPress 4.11 script breaks in 6.5 - Why?
      • From: Peter Waibel <email@hidden>
  • Prev by Date: Re: newbie question: AppleScript and hashbang
  • Next by Date: Re: newbie question: AppleScript and hashbang
  • Previous by thread: RE: Some basic AppleScript questions and about PowerPoint scripti ng
  • Next by thread: Re: QuarkXPress 4.11 script breaks in 6.5 - Why?
  • Index(es):
    • Date
    • Thread