🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19116

Compiling odl file on MAC

#19116
From: manjit wadhwan
Date: Mon, 20 Jan 2003 09:35
16 lines
1611 bytes
I have scripted one function(DoDocEvent()) in InDesgn and want to call that from AppleScript.
When I call this function through AppleScript - It gives me the error - "Document doesn't understand the DoDocEvent message"
The script is:
tell application "InDesign 2.0.1"
	activate --Must bring InDesign to front.
	tell front document
		DoDocEvent()
	end tell
end tell

I think the reason is that the .odl file which contains Type library source for the plugin is not getting compiled. Hence type library is not getting embedded in the plugin. Due to which AppleScript is not able find the new function.
Is there any way to compile odl file on MAC? This is very easily done on PC. MIDL compiler compiles odl files and creates tlb file. Thus type library is embedded in the plug-in which can then be called from Visual Basic.

Does anyone has solution to this problem or just an idea for me to work on that?

Thanks.
Technical Details
Message-ID: <1de774a0.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!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,e91471ad23a2d52b,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-20 01:38:02 PST
From: "manjit wadhwan" <manjit@sansuisoftware.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Compiling odl file on MAC
Message-ID: <1de774a0.-1@WebX.la2eafNXanI>
Date: Mon, 20 Jan 2003 01:35:32 -0800
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit