🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19245

Re: Getting started in VB

#19245
From: Olav Kvern
Date: Sat, 28 Dec 2002 09:55
35 lines
1769 bytes
Kim--

re: Using Office X VB tools to drive InDesign

I don't think so--unless they have some way of sending AppleEvents to other applications. InDesign supports the platform standard scripting architecture, which probably isn't VB on the Mac OS.<g> It might be possible, but I think it would probably result in a script that you couldn't use in Windows.

Why don't we try parts of scripts? A few things come to mind immediately:

* In AppleScript, "Set" is always used to assign a value to a variable. In VB, you use "Set" when you're assigning an object value to a variable. If you're assigning non-object variables (e.g., a number or a string), you don't use "Set."

* VB has various looping constructs--which one you use depends on which form of "repeat" AppleScript loop you want to translate. For example:



repeat with myCounter from 1 to 20 
--Do something 
end repeat 




Becomes



For myCounter = 1 to 20 
Rem Do something 
Next 




Thanks,

Ole
Technical Details
Message-ID: <1de72498.2@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de72498.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,e8fe5c8c7eb997aa
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-12-28 02:07:36 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-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Getting started in VB
Message-ID: <1de72498.2@WebX.la2eafNXanI>
Date: Sat, 28 Dec 2002 01:55:48 -0800
References: <1de72498.-1@WebX.la2eafNXanI>
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit