Article View: adobe.scripting.indesign
Article #18647Re: FlattenerStyles in conjuction with PDFExportPreferences
From: Peter May
Date: Fri, 28 Feb 2003 13:50
Date: Fri, 28 Feb 2003 13:50
18 lines
1460 bytes
1460 bytes
I have tried the above this time using VB.
Here is the code.
14 Dim myInDesign
15 Set myInDesign = CreateObject("InDesign.Application.2.0")
16 Set myFlattenerStyle = myInDesign.FlattenerStyles.Add
17 myFlattenerStyle.Name = "VB TEST 1"
18 Set myPDFExportPreferences = myInDesign.PDFExportPreferences
19 myPDFExportPreferences.FlattenerStyle = myInDesign.FlattenerStyles.Item("VB TEST 1")
and this is the error
R:\A2AControl\Utils\test.vbs(19, 1) D:\Program Files\Adobe\InDesign 2.0\InDesign.exe: The property is not applicable in the current state.
It appears to me to be the same error.
The above is based on code on pages 353 and 354 of the InDesign Scripting Guide, a PDF document.
Technical Details
Message-ID:
<1de81235.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de81235.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,9a3a2afbcc4404a0 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-02-28 06:07:49 PST From: "Peter May" <peter_may@umbro.co.uk> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: FlattenerStyles in conjuction with PDFExportPreferences Message-ID: <1de81235.0@WebX.la2eafNXanI> Date: Fri, 28 Feb 2003 05:50:07 -0800 References: <1de81235.-1@WebX.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit