Article View: adobe.scripting.indesign
Article #15705Re: Any advantage in learning JavaScript over AppleScript?
From: Olav_Kvern
Date: Mon, 17 Nov 2003 23:59
Date: Mon, 17 Nov 2003 23:59
13 lines
1625 bytes
1625 bytes
Cliff-- It's pretty much a toss-up, in my opinion. AppleScript is far easier to learn if you're an English speaker, as it's very similar to English. AppleScript is very strong at string/text handling, and it has filter clauses that help you avoid iteration. One notable weakness of AppleScript is that it lacks basic trigonometric functions. You can fix this by using scripting extensions, but these complicate script distribution. Trigonometry is very useful if you intend to do anything with paths and path points; otherwise, you can probably get by without it. Shane's right--if you need to control multiple applications, you're probably better off using the platform-specific language rather than JavaScript (though I expect we'll tackle this in future releases). You can mix and match--have your JavaScripts call AppleScripts/VBScripts using the doScript method, but doing so can make things very complicated. Thanks, Ole
Technical Details
Message-ID:
<2cce710b.1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cce710b.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,76379a2d4cf65ca4 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-17 16:07:55 PST From: Olav_Kvern@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Any advantage in learning JavaScript over AppleScript? Message-ID: <2cce710b.1@webx.la2eafNXanI> Date: Mon, 17 Nov 2003 15:59:36 -0800 References: <2cce710b.-1@webx.la2eafNXanI> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit