Thread View: adobe.scripting.indesign
2 messages
2 total messages
Started by Bradford_Armstrong
Wed, 18 Feb 2009 18:17
[AS] CS3- Find any text with style, then replace that text with a new applied fill color.
Author: Bradford_Armstrong
Date: Wed, 18 Feb 2009 18:17
Date: Wed, 18 Feb 2009 18:17
3 lines
1124 bytes
1124 bytes
I am trying to find the simplest way in cs3 to find any text with style, then replace that text with a new fill color. I can find text and change text. I can find a style and change it to a new style. I can't seem to find a style and change the applied fill color. I do not want to change the properties of the style, just the applied color. Yes, I want the + sign, for now. I know, why not update the style, I am not allowed to. Any help would be great. Since the search is not available, I need a new response. Thanks.
Re: [AS] CS3- Find any text with style, then replace that text with a new applied fill color.
Author: Shane_Stanley
Date: Wed, 18 Feb 2009 22:27
Date: Wed, 18 Feb 2009 22:27
19 lines
1932 bytes
1932 bytes
You can work around the bug by just doing a find, then looping through the
results, changing the color one at a time. It'll be a fraction slower, but
should do the trick:
tell application "Adobe InDesign CS3"
set find text preferences to nothing
set properties of find text preferences to {applied paragraph style:"The
name"}
set theFinds to find text document 1
repeat with i from 1 to count of theFinds
set properties of item i of theFinds to {fill color:"Replace color"}
end repeat
end tell
The bug is fixed in CS4, BTW.
--
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads