QuarkXPress: deleting characters with a pantone spot color
QuarkXPress: deleting characters with a pantone spot color
- Subject: QuarkXPress: deleting characters with a pantone spot color
- From: Michael Turner <email@hidden>
- Date: Mon, 20 Aug 2001 12:44:20 -0400
Hello,
I am attempting to delete all characters in a large document thus:
tell application "QuarkXPress 4.1"
activate
tell document 1
repeat with x from 1 to count of pages
tell page x
repeat with y from 1 to count of text boxes
tell text box y
repeat with ct from 1 to count of characters
try
delete (character ct whose color is ,
color spec "PANTONE 354 CV" of document
"p392-423" of application "QuarkXPress 4.1")
on error
beep
end try
end repeat
end tell
end repeat
end tell
end repeat
end tell
end tell
All I get is 'beep'ed. I am suspicious that the syntax of the delete is the
problem. I got the color directly by inquiring the document for it:
tell application "QuarkXPress 4.1"
activate
tell document 1
get color of selection
end tell
end tell
returns:
color spec "PANTONE 354 CV" of document "p392-423" of application
"QuarkXPress 4.1"
Any assistance would be appreciated.
/Michael Turner