color killer/conversion script
Rick Gaskin
rgaskin at wdt.net
Tue Nov 13 10:08:55 CST 2007
i still plagued by extra colors being added to my color lsit every time
i bring in colorized element (text, geo blocks etc etc) from another doc.
so, i got to thinkin (i have no idea how this script could be written
but it shouldn't be hard - i have something similar written by our
friend SM which kind of sort of does the sme thing with hidden glyphs -
ie searches out text blocks and if a certain condition exists or a
certain anamoly is found ...it will fix the text)
why couldn't script be written that would look at every element in the
doc. when it encountered a element with a particular color it would
automatical convert it to the correct color...
in other words, upon activation the script looks at every element, when
it finds an element and the color with anamolous color (ex: Blue 1, Blue
2, etc or Red 1, Red 2 etc - essentially any color name followed by a
space and numeral) that it would convert it to another color from the
color list - create peset set conversion Blue 1 = Blue; Blue 2 = Blue;
the script could go further and delete the rogue color after its been
converted
he example below doesn't work and i am sure there in reality it would be
more complex but blue 1 make it blue
using terms from application "MultiAd Creator Pro Beta"
on opened theDoc
tell application "MultiAd Creator Pro Beta"
activate
set num to number of items of document 1
repeat with i from 1 to num
set (every item i of document 1 where it is "Blue 1") to
blue
end repeat
end tell
end opened
end using terms from
--
CONFIDENTIALITY NOTICE: This message may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.
More information about the Creator
mailing list