Okay, I thought this was an easy one. Perhaps someone can point out my problem? This script looks at a Quark document, examines all text boxes and deletes the empty ones. It works okay but eventually errors out. I’m sure somebody must have written something similar, but I couldn’t find it. Thanks.
tell application "QuarkXPress"
activate
tell document 1
repeat with T from 1 to (count of every text box)
tell text box T
set P to (every paragraph)
if P = {} then delete
end tell
end repeat
end tell
end tell