🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9272

Re: Styling tables without(!) table styles and cell styles

#9272
From: Dirk_Becker
Date: Thu, 24 Aug 2006 07:54
24 lines
1322 bytes

      This is a continuation of ...




If so, you should post it as comment in that thread.

I do not understand why you need on the string representation when you have the fully parsed thing.

If you ask anything for its properties, you get the JS equivalent to an AS record which is a list of key value pairs, not bound to any native handling any more. In JavaScript you would construct such a record like here:
{ key1: 47, key2: 11 }
To remove a named slot you use the delete operator.
Try this snippet - I use a swatch as I'm no tea drinker:

AAA = app.swatches[2].properties;
alert(AAA.toSource());
delete AAA.parent;
delete AAA.id;
delete AAA.index;
alert(AAA.toSource());

Dirk
Technical Details
Message-ID: <3bc16077.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc16077.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,edd75ed1deae000
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dirk_Becker@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Styling tables without(!) table styles and cell styles
Message-ID: <3bc16077.0@webcrossing.la2eafNXanI>
Date: Thu, 24 Aug 2006 00:54:04 -0700
References: <3bc16077.-1@webcrossing.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing