Here are some things that might be useful. These are just starting points for checking rows.
This script can highlight rows in Quark:
tell application "QuarkXPress"
tell document 1
tell story 1
set tabList to tab list of paragraph 1
set rowCount to count of every paragraph
repeat with i from 1 to rowCount
try
if tab list of paragraph i is not equal to tabList then
set color of text of paragraph i to "Red"
end if
end try
end repeat
end tell
end tell
end tell
-------------------------
[This script was automatically tagged for color coded syntax by
Convert Script to Markup Code]
This script can fix tabs in Quark:
tell application "QuarkXPress"
tell document 1
tell story 1
set tabList to tab list of paragraph 1
set rowCount to count of every paragraph
repeat with i from 1 to rowCount
try
if tab list of paragraph i is not equal to tabList then
set tab list of paragraph i to tabList
end if
end try
end repeat
end tell
end tell
end tell
-------------------------
[This script was automatically tagged for color coded syntax by
Convert Script to Markup Code]
These are very simple scripts. They are mostly just for testing. They should work on a Quark document that has just 1 story, and the "story" only has rows of tabbed text. You can see that they get info from paragraph 1, and use that info to check the other paragraphs.
To try these, copy one section of the colored text (each "section" is 15 lines of text). Open Script Editor from inside the Applescript folder of the Applications folder. Open a new Script Editor window, paste the text in there, and click Compile or (press command k). You can save the script anywhere, but if you save in inside the Scripts folder inside the QuarkXpress folder (in Applications), then you can run the script right from within Quark. (I'm not sure if the Script icon is always available in the Quark menu bar...if it's not there, just run the script from Script Editor by clicking Run).
Here's how you could do a grep search in TextWrangler. This is also a simple test method, to see if it does the basic function you need.
Save the xpress tags for the table ONLY (this is to make the test easier). Open the xpress tags document in Textwrangler.
Use the cursor to highlight one instance of the correct tags, for instance, <*t(120,1"1 ")>
With the text still highlighted, choose Find... from under the Search menu. The Find and Replace window should open.
Check the Use Grep check box if it is not already checked, then click the "SS" button to the left of the check box. (It's not exactly SS, it's like a "section" symbol). What this does is load the selection into the Find box with the proper escapes (i.e., backslashes).
The selection <*t(120,1"1 ")> should now look like this in the Find and Replace: <\*t\(120,1"1 "\)>
Add a caret (^) to the beginning: ^<\*t\(120,1"1 "\)> This caret means, Look only at the start of each line.
Add some parentheses for grouping: ^(<\*t)(\(120,1"1 "\)>). Two sets of parens were added: ^(<\*t)(\(120,1"1 "\)>)
Add the "negative look ahead" argument, which is "?!" (but no quotes): ^(<\*t)(?!\(120,1"1 "\)>)
Okay, find side is done.
In the replace side, put in "Error\1" (without the quotes) "Error" is just a word, you can use any word you like, and backslash 1 (\1) recalls the contents of the first set of parens on the Find side: (<\*t).
Check the "Start at top" check box and start searching. The search should find all the "wrong" xpress tags, and mark with the Error message when you click replace.
Got to go now, but maybe some of this will help. Let me know what you think, and I'll try and help develop something more complex. The hardest part of all this is getting it formatted for the forum using Safari browser.