🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16356

Re: [vb.net] importing XML file into InDesign

#16356
From: Richard R�nnb�ck
Date: Wed, 17 Sep 2003 17:17
33 lines
1921 bytes
Nico, my knowledge of VB is much too limited to help you with the syntax,
but the method is there alright. In AppleScript (which is what I know) it is
associated with the document object. Like this:


tell application "InDesign 2.0.2"
    tell every document to import XML from "Macintosh
HD:Users:richardr:Desktop:Source.xml"
end tell

(path should be without line break)

Note however that the XML import preferences belongs to the application


The size of the XML file you are about to import will probably cause
InDesign to choke though - have you tried to import it via the UI


On 03-09-17 18.32, in article 2ccd750f.-1@webx.la2eafNXanI, "nico_"
<nico@dovetree.com> wrote:

> Hi everyone,
> 
> trying to import an XML file (quite large -- half meg file) into InDesign. I
> do not see how this is possible though. All of the COM objects that InDesign
> exposes that are prepending with XML... do not have a property or a method
> value that takes a path/filename of an XML file to import.
> 
> How is everybody else importing XML files into InDesign via the COM?
> 
> Thanks in advance,
> Nico
Technical Details
Message-ID: <BB8E63C5.18307%richard.ronnback@telia.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd750f.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,8e86ee293c0d0240
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-17 10:37:45 PST
From: Richard R�nnb�ck <richard.ronnback@telia.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [vb.net] importing XML file into InDesign
Message-ID: <BB8E63C5.18307%richard.ronnback@telia.com>
Date: Wed, 17 Sep 2003 10:17:25 -0700
References: <2ccd750f.-1@webx.la2eafNXanI>
Lines: 39
User-Agent: Microsoft-Entourage/10.1.4.030702.0
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit