🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1179

Re: [AS] CS3- Find any text with style, then replace that text with a new applied fill color.

#1179
From: Shane_Stanley
Date: Wed, 18 Feb 2009 22:27
19 lines
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>
Technical Details
Message-ID: <C5C2D692.4EC2E%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b7f9db.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1f7202767cc7f710
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] CS3- Find any text with style, then
 replace that text with a new applied fill color.
Message-ID: <C5C2D692.4EC2E%sstanley@myriad-com.com.au>
Date: Wed, 18 Feb 2009 14:27:46 -0800
References: <59b7f9db.-1@webcrossing.la2eafNXanI>
Lines: 25
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AnABAAManEl8qGiq/2dsb2JhbAAI1UGEEwY
X-IronPort-AV: E=Sophos;i="4.38,230,1233500400"; 
   d="scan'208";a="440169028"
  by outbound.icp-qv1-irony-out2.iinet.net.au with ESMTP; 19 Feb 2009 07:27:49 +0900
User-Agent: Microsoft-Entourage/12.15.0.081119
Thread-Topic: [AS] CS3- Find any text with style, then replace that text with
 a new applied fill color.
Thread-Index: AcmSGB9fJg7heLI6EEuUwB/thoEbOA==
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit