🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2488

[CS4][JS] Accessing skewed text items

#2488
From: Douglas_Neale
Date: Wed, 17 Dec 2008 17:14
28 lines
2346 bytes
The following code snippet successfully finds all the skewed text in a 
document and then removes the skew:

//Clear the find/change preferences.
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeTextOptions.caseSensitive = false;
    app.findChangeTextOptions.includeFootnotes = false;
    app.findChangeTextOptions.includeHiddenLayers = false;
    app.findChangeTextOptions.includeLockedLayersForFind = false;
    app.findChangeTextOptions.includeLockedStoriesForFind = false;
    app.findChangeTextOptions.includeMasterPages = false;
    app.findChangeTextOptions.wholeWord = false;
    //Search the document for all the skewed text
    app.findTextPreferences.skew = 1;
    // now remove all skews
    app.changeTextPreferences.skew = 0;

However, I want to access each fragment of skewed text rather than 
globally change them.

How do I access the collection of skewed text items as the 
findTextPreferences does not seem to possess the required properties.

TIA

Doug Neale
Technical Details
Message-ID: <4949337E.70400@dougneale.co.uk>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news4us.nl!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,3c0799f6a55c6d61,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Douglas_Neale@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: [CS4][JS] Accessing skewed text items
Message-ID: <4949337E.70400@dougneale.co.uk>
Date: Wed, 17 Dec 2008 09:14:38 -0800
Lines: 28
Received: from moutng.kundenserver.de [212.227.126.186] by adobeforums.com; Wed, 17 Dec 2008 09:15:09 -0800
Received: from [127.0.0.1] (82-43-214-236.cable.ubr10.nmal.blueyonder.co.uk [82.43.214.236])
 by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis)
 id 0ML2xA-1LCzyp21p6-0004AV; Wed, 17 Dec 2008 18:14:39 +0100
User-Agent: Thunderbird 2.0.0.18 (Windows/20081105)
X-Antivirus: avast! (VPS 081217-0, 17/12/2008), Outbound message
X-Antivirus-Status: Clean
X-Provags-ID: V01U2FsdGVkX19x5rtMS2H5E9ZD/kplkr7D5N60vXS3ip/uBdA
 n5HBCps56ANHQ1oYul3KEyI46zREmTnBxiwLxk5pgXgzMmAxcX
 FXXasCzrS22zh7YZ5HIm/YKVGHZfY2s
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news4us.nl!webcrossing