Article View: adobe.scripting.indesign
Article #1512Access image placed by xml-rules
From: Siegfried_Kauschat
Date: Thu, 05 Feb 2009 11:12
Date: Thu, 05 Feb 2009 11:12
25 lines
1330 bytes
1330 bytes
Hi, I have to modify an image (width/height) which is placed by xml-rules.
XML:
...
<sometag> <Symbol typ="new" href="myimage.tif"/> </sometag> ...
JavaScript:
...
function SymbolRule() { this.name = "Symbol"; this.xpath = "//sometag/Symbol[@typ='new']";
this.apply = function (element, ruleProcessor) { with (element) { applyObjectStyle("somestyle");
} }
...
How can I now access this image to modify its properties?
I've read <http://www.adobeforums.com/webx/.59b7295a/2> but I don't understand *where* to place the code to access the image. Is it possible to do it in my XML-Rule SymbolRule()? Or is it "to early" because the image is no yet placed in the document?
Technical Details
Message-ID:
<59b7c9c9.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,68107f50ad7c3079,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Siegfried_Kauschat@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Access image placed by xml-rules Message-ID: <59b7c9c9.-1@webcrossing.la2eafNXanI> Date: Thu, 5 Feb 2009 03:12:28 -0800 Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit