Indiscripts

Tag : ExtendScript

Drawing Sine Waves in InDesign [UPDATE]

Bézier curve approximation of sine waves

Computing Bézier curves that really look like sine waves is an exciting challenge for script developers. One needs to deal with both optimizing control points, transforming coordinate spaces and splitting curves. Here is a function that solves it all in ExtendScript for InDesign…

Continue reading...

Understanding the `count( )` Method

InDesign's scripting infrastructure is based on DOM objects (Document, Story, Paragraph…) and any such object has an associated collection (Documents, Stories, Paragraphs…). Collections typically arise in complex specifiers like myDocument.stories.everyItem().words. They also provide two essential members, the length property and the count() method. How do they differ?

Continue reading...

The Tricky Side of `string.replace( )` in ExtendScript

When you invoke myString.replace(...) in pure JavaScript, the “string being examined” is and remains myString during the whole operation. ExtendScript offers a slightly different mechanism that may unexpectedly alter the output string…

Continue reading...

What's New in IdExtenso 2.00601

IdExtenso: ExtendScript Framework for InDesign Ninjas

Continue reading...

Why You Should Never Use `x==null` in ExtendScript

The Japanese scripter あるふぁ found a bug affecting any ExtendScript code based on ...==null. This is not a critical issue (because experienced developers never use such condition!) but the case provides the opportunity to summarize important rules regarding falsey values and the equality operator…

Continue reading...

InDesign Scripting Forum Roundup #13

Here are nine useful InDesign scripts extracted from one year of debate in the scripting branch of forums.adobe.com. There are snippets for every taste—text, layout, graphics, geometry, UI—so take a look!

Continue reading...

A “Symbol-to-Greek” Snippet for InDesign

Let's convert Symbol letters into true Greek characters.

Continue reading...

PhysicalSize | Check Your Design At True 1:1 Magnification

PhysicalSize for InDesign CS4/CS5/CS6/CCEvery InDesign user must accept this boring fact: “100% size preview is not actual size”. Because of this old unsolved flaw, graphic designers, layout artists, typographers… cannot trust the so-called “Actual Size” command. With PhysicalSize you will be able to recover your sight…

Continue reading...

JsxBlind | The Case of “Nested” Variable Names

JsxBlind 2: The JSXBIN ObfuscatorWhile version 2.1 of JsxBlind library has just been released, I'd like to focus on a technical issue you may have encountered. If the script to be obfuscated contains eval(…) or app.doScript(…) blocks, there is a good chance that abysmal errors arise. Here is the solution to this enigma…

Continue reading...

How To Get parseInt( ) Fixed in ExtendScript

The global method parseInt(str,radix) has a critical bug in ExtendScript. When radix is greater than 10, some undesired characters can be mistakenly parsed as valid digits, which corrupts the output. This issue is solved in IdExtenso

Continue reading...

Note on ScriptUI Mouse Events

ScriptUI provides a set of usual mouse events (mouseover, mousedown, mouseup, click…) which are of primary interest in responsive user interfaces (UI). Developers can add event listeners to any UI component that needs to respond accordingly when the mouse enters the scene. But handling such events requires carefulness if your script has to support both CS and CC environments.

Continue reading...

JsxBlind 2.0 Meets IdExtenso

Faster, cleaner, smarter, JsxBlind 2.001 is out! As a library, it now belongs to IdExtenso's toolbox, which I think is top-notch news for serious ExtendScript developers. Also available here is the “standalone version” (named JsxBlindRun) that should work fine from InDesign CS4-CC or ESTK…

Continue reading...

InDesign Scripting Forum Roundup #12

Hey scripters, are you familiar with InDesign events, event listeners, menu actions, idle tasks? That's the hot focus of the 12th ISFR. Plus a fine selection of threads and snippets involving GREP, text, CMYK swatches, IDML, transformations… Enjoy the ride!

Continue reading...

IDUG Paris : présentation IdExtenso [PDF]

IdExtenso s'invite à l'IDUGCe mardi, l'équipe du InDesign User Group Paris a accueilli votre serviteur en grandes pompes — enfin, pointure 42, n'exagérons rien — pour une initiation en douceur au framework IdExtenso. Plutôt que de m'égarer dans une technicité inaudible, j'ai profité de cette invitation pour rassembler quelques repères sur le scripting InDesign, échantillons à l'appui, avec des pistes pour les développeurs plus motivés. En résulte un PDF que j'ai la faiblesse de tenir pour un bon préambule si vous vous lancez dans l'automatisation pour InDesign : IdExtenso-Slides.pdf (1,4 Mo).

JsxBlind 1.008: Important Bug Fix [OBSOLETE]

JsxBlind v.1.008 is now available and fixes a serious issue you may have encountered using the previous version. Thanks to my colleagues Davide Barranca and Justin Putney it has been found that JsxBlind's output could be corrupted when originating from a process that relies on a persistent engine…

Continue reading...

SelToPng | Quick InDesign-to-PNG Serializer

As an InDesign maniac I often use it for achieving tasks that would normally involve Illustrator or Photoshop. The best example of this deviance is PNG conversion. You read it well! And here is a tool that translates any InDesign shape, group, or whatever, into a PNG stream. Not a big deal, but let me explain…

Continue reading...

IdExtenso: ExtendScript Framework for InDesign Ninjas

Driven by a mix of vanity and liberalness I decided to make public the building blocks of my InDesign scripting framework, which I called IdExtenso. The alpha release is now available on my GitHub account and will be regularly extended in the coming weeks and months…

Continue reading...

JsxBlind's New Version for ExtendScript Developers [OBSOLETE]

JsxBlind 1.007 is available today—still for free—and now delivered in two formats: a standalone script (JsxBlindRun.jsx) that offers a quick and easy way to scramble a JSXBIN file straight from InDesign (as previously), and a “includable library” (JsxBlindLib.jsxinc) that provides advanced options to developers who need to plug JsxBlind features in an automated workflow (ESTK extension, panel development process, or any custom framework.)

Continue reading...

Drawing Spirals in InDesign

Bézier curve approximations of Archimedean spirals

Continue reading...

JsxBlind | The First JSXBIN Obfuscator for ExtendScript

As Christmas is approaching I wish to share with the scripting community a very unexpected utility, which for legal reasons I can hardly tell anything detailed! Paradoxically, as you shall see, JsxBlind aims to protect script authors from being despoiled…

Continue reading...

- Page 1 of 2