QuarkXPress 4.11 script breaks in 6.5 - Why?
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