🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8427

Re: Convert empty text frames to "unassigned"

#8427
From: Robert Tkaczyk
Date: Fri, 13 Oct 2006 12:38
19 lines
1335 bytes
> myPIs = app.documents[0].allPageItems; 
> for (var j = myPIs.length - 1; j >= 0; j--) { 
>   if (myPIs[j].constructor.name == "TextFrame" && myPIs[j].contents == "") { 
>     try {myPIs[j].contentType = ContentType.unassigned} catch(e) {}		
> 
>   } 
> }

why not iterate Stories collection ?? ;)

TextFrame can't exist without Story - we overlook all other objects
and we need to check if Story have only one TextFrame - this eliminate 
threaded, empty textframes


robin

-- 
www.adobescripts.com
Technical Details
Message-ID: <B43AE6C00EC88A4D38156C65CE02734D@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc1f4d8.-1@webcrossing.la2eafNXanI> <3bc1f4d8.0@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,36cdad94baf5056
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Robert Tkaczyk <indesignscripts@wp.pl>
Newsgroups: adobe.scripting.indesign
Subject: Re: Convert empty text frames to "unassigned"
Message-ID: <B43AE6C00EC88A4D38156C65CE02734D@in.webcrossing.la2eafNXanI>
Date: Fri, 13 Oct 2006 05:38:44 -0700
References: <3bc1f4d8.-1@webcrossing.la2eafNXanI> <3bc1f4d8.0@webcrossing.la2eafNXanI>
Lines: 20
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
X-Antivirus: avast! (VPS 0641-4, 2006-10-13), Outbound message
X-Antivirus-Status: Clean
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing