🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20895

How to get the Object and how to return a PMString

#20895
From: Joel Corbaz
Date: Thu, 23 May 2002 19:33
13 lines
1512 bytes
Hello !  

I have created a plugin that adds a new event to a Document object. My problem is: how to get the actual document pointer ? In my Script provider, I tried to use the Script object of the HandleEvent method, with code like:  

aDoc = (IDocument*)script->QueryInterface(IID_IDOCUMENT);  

without any success. As the VB script did call this method on one given document, how can I know, within the handler, which document ?  

I also would like to exchange some data with my script, especially return data to the VB script. In all your examples you use properties to do so. Is it "forbidden" to add parameters to event methods in the ODL ? How am I to return a PMString (possibly larger than 256 chars) ? Could you post some code  

(jcorbaz@consultas.ch) TIA.  

Joel
Technical Details
Message-ID: <ef8b601.-1@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!colt.net!newsfeed.icl.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,1ba604584340050a,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-05-23 12:38:07 PST
From: "Joel Corbaz" <jcorbaz@consultas.ch>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!colt.net!newsfeed.icl.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: How to get the Object and how to return a PMString
Message-ID: <ef8b601.-1@WebX.aaQKaf7vad4>
Date: Thu, 23 May 2002 12:33:42 -0700
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit