Article View: adobe.scripting.indesign
Article #2450Re: deleting unused paragraph styles and swatches ID CS2
From: Shane_Stanley
Date: Mon, 15 Dec 2008 22:06
Date: Mon, 15 Dec 2008 22:06
25 lines
2188 bytes
2188 bytes
On 16/12/08 1:06 AM, "Roy McCoy" <member@adobeforums.com> wrote: > set find text preferences to nothing > set applied character style of find text preferences to myStyle > tell active document Those lines look redundant. > The first time I ran it it left one of the two unused styles I'd > created undeleted This script is not foolproof, in that it won't delete any character style that's based on another, even if the one it's based on is not used. > and the second time it generated the AppleScript > error 'Can�t make �class csty� id 357 of document "Untitled-15.indd" > of application "Adobe InDesign CS4" into type Unicode text' > highlighting "myCurrentStyle" in the if line of the repeat. No idea how you got that. -- Shane Stanley <sstanley@myriad-com.com.au> AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
Technical Details
Message-ID:
<C56D201D.4CFC5%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossingReferences:
<59b72013.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,4e82dc975bdf3059 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII From: Shane_Stanley@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: deleting unused paragraph styles and swatches ID CS2 Message-ID: <C56D201D.4CFC5%sstanley@myriad-com.com.au> Date: Mon, 15 Dec 2008 14:06:37 -0800 References: <59b72013.-1@webcrossing.la2eafNXanI> Lines: 28 Received: from outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.150] by adobeforums.com; Mon, 15 Dec 2008 14:07:12 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsMAAJpjRknL2V24/2dsb2JhbAAIzGeCfg X-IronPort-AV: E=Sophos;i="4.36,226,1228057200"; d="scan'208";a="290123372" Received: from unknown (HELO [10.1.1.5]) ([203.217.93.184]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 16 Dec 2008 07:06:40 +0900 User-Agent: Microsoft-Entourage/12.15.0.081119 Thread-Topic: deleting unused paragraph styles and swatches ID CS2 Thread-Index: AclfAWYjs5OqyWK2xkOE81jrPMpZWQ== MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit