Quark List question
Quark List question
- Subject: Quark List question
- From: Oakley Masten <email@hidden>
- Date: Mon, 26 Mar 2007 12:48:36 -0700 (PDT)
HelpPPPPPPPPPPPPPP
I can't make this work
property refList : {}
property refList2 : {}
property RefText : {}
property OldECode : {"#102"}
property NewECode : {"#202"}
tell application "QuarkXPress"
tell document 1
-------------Counts "E codes" and compares to "#"
counts for all correct test ---
try
set refList to object reference of every text of
every story whose contents is OldECode as text
set refList2 to object reference of every text of
every story whose contents is "#"
--return refList
set CountItems to count of items in refList
set CountItems2 to count of items in refList2
--return CountItems & CountItems2
on error errMsg number errNum
return "No matching text found"
end try
return refList
-----------------------------------------------------------------------------------
end tell
end tell
--This does not work.
set RefText to item 3 in (refList as list) as text
(*
How do I get the full reference text as listed in the
refList variable.
I want to compare them to the refList2 list to find
out which items are wrong.
RefText = text from character 520 to character 523 of
story 50 of document "SPR07B2_C_MM_0607_102" of
application "QuarkXPress",
I want to know which box the text is located in so I
can go and fix it.
*)
(*
Results of refList variable.
{
text from character 228 to character 231 of story 50
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress",
text from character 488 to character 491 of story 50
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress",
text from character 520 to character 523 of story 50
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress",
text from character 550 to character 553 of story 50
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress",
text from character 583 to character 586 of story 50
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress",
text from character 921 to character 924 of story 50
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress",
text from character 343 to character 346 of story 75
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress",
text from character 729 to character 732 of story 75
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress",
text from character 327 to character 330 of story 76
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress",
text from character 751 to character 754 of story 102
of document "SPR07B2_C_MM_0607_102" of application
"QuarkXPress"
}
*)
_______________________________________________
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