Article View: adobe.scripting.indesign
Article #16740Re: ApplyStyle Method (Semi-Newbie Question)
From: Olav Kvern
Date: Tue, 05 Aug 2003 19:38
Date: Tue, 05 Aug 2003 19:38
23 lines
1313 bytes
1313 bytes
Paul--
No problem--I do the same sort of thing about 100 times per day. In VB6/VBScript, you use parentheses around method parameters when you are assigning the return value from the method to a variable--as in:
Set myDocument = myInDesign.Documents.Open("c:\FLCL.indd")
If you didn't care about assinging the document object returned by the method to a variable, you could use:
myInDesign.Documents.Open "c:\FLCL.indd"
Thanks,
Ole
Technical Details
Message-ID:
<1dea2561.3@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!62.132.236.44.MISMATCH!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!uni-erlangen.de!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea2561.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,79e1d7a74e4853d1 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-05 13:08:23 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!62.132.236.44.MISMATCH!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!uni-erlangen.de!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: ApplyStyle Method (Semi-Newbie Question) Message-ID: <1dea2561.3@WebX.la2eafNXanI> Date: Tue, 5 Aug 2003 12:38:54 -0700 References: <1dea2561.-1@WebX.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit