RE: QuarkXPress: deleting characters with a pantone spot color
RE: QuarkXPress: deleting characters with a pantone spot color
- Subject: RE: QuarkXPress: deleting characters with a pantone spot color
- From: mick wenlock <email@hidden>
- Date: Mon, 20 Aug 2001 12:36:47 -0600
on Mon, 20 Aug 2001 Michael Turner asked on the Subject: QuarkXPress:
deleting characters with a pantone spot color:
>
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. ..snip..
>
Any assistance would be appreciated.
/Michael Turner
Hi Michael,
Try tweaking this, I did a quick test on a 3 page document with no problems:
tell application "QuarkXPress(tm) 4.11"
tell document 1
delete ((every character of every story of every text box)
whose color is "red")
end tell
end tell
Best Regards,
Mick
Quark AppleScript Support