Article View: adobe.scripting.indesign
Article #16239Re: Script 2 PDF (VB Script)
From: Chris_Haas
Date: Fri, 03 Oct 2003 18:58
Date: Fri, 03 Oct 2003 18:58
12 lines
1475 bytes
1475 bytes
VBScript is a lighter version of VB, which is the code that you have.
Basically you can't use data types or built in constants (without manually
declaring them). So use:
Const idExportPDF = 1952403524
Dim myInDesign
Set myInDesign = CreateObject("InDesign.Application")
Set Doc = myInDesign.Open("D:\Temp\Prot Externo.indd")
Doc.Export idExportPDF, "D:\Temp\JJ.pdf", False,
First line declares the constant "idExportPDF" and the second line we
removed the "as InDesign.Application"
Technical Details
Message-ID:
<A20802D79B272340EC9DA0690746F488@in.webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news-xfer1.atl.newshosting.com!63.218.45.11.MISMATCH!newshosting.com!news-xfer2.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccd9e90.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,616b7aa32e1cb030 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-10-03 12:08:13 PST From: Chris_Haas@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news-xfer1.atl.newshosting.com!63.218.45.11.MISMATCH!newshosting.com!news-xfer2.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Script 2 PDF (VB Script) Message-ID: <A20802D79B272340EC9DA0690746F488@in.webx.la2eafNXanI> Date: Fri, 3 Oct 2003 11:58:19 -0700 References: <2ccd9e90.-1@webx.la2eafNXanI> Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit