Article View: adobe.scripting.indesign
Article #1786Re: [AS][CS3] Finding text with character style
From: Shane_Stanley
Date: Mon, 26 Jan 2009 21:44
Date: Mon, 26 Jan 2009 21:44
14 lines
1626 bytes
1626 bytes
You could try this:
tell application "Adobe InDesign CS3"
tell document 1
set thestyle to character style "Whatever"
delete (every text style range of every story whose applied
character style is thestyle)
end tell
end tell
--
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
Technical Details
Message-ID:
<C5A479DC.4DCFD%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7ac96.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d4a69b6c2c446581 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Shane_Stanley@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [AS][CS3] Finding text with character style Message-ID: <C5A479DC.4DCFD%sstanley@myriad-com.com.au> Date: Mon, 26 Jan 2009 13:44:12 -0800 References: <59b7ac96.-1@webcrossing.la2eafNXanI> Lines: 16 Received: from outbound.icp-qv1-irony-out1.iinet.net.au [203.59.1.108] by adobeforums.com; Mon, 26 Jan 2009 13:44:48 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjYBAHq9fUl8qCrb/2dsb2JhbAAIyQCFSw X-IronPort-AV: E=Sophos;i="4.37,327,1231081200"; d="scan'208";a="444850095" Received: from unknown (HELO [10.1.1.4]) ([124.168.42.219]) by outbound.icp-qv1-irony-out1.iinet.net.au with ESMTP; 27 Jan 2009 06:44:15 +0900 User-Agent: Microsoft-Entourage/12.15.0.081119 Thread-Topic: [AS][CS3] Finding text with character style Thread-Index: Acl//znOM414NtYAdUy7YORKHi/KJA== MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit