Reply To: Script to change the language of all text on document

#61359

Eric, sorry — you are correct, I re-read my post and indeed forgot to mention it's Javascript.

InDesign supports three different scripting languages out-of-the-box, and so it would be wise to always state what language is used :-) There are a few small clues, though, hidden inthe “syntax”:

AppleScript uses a syntax based on English:

tell application “InDesign” to copy item 3 of page 1 … — this is a comment

etc. (I'm making this one up as I don't speak AppleScript).

Visual Basic leans heavily on ye olde Basic and has Initial Caps for Everything:

Sub CopyItem (item) ' a comment after a ' sign

x = Rectangles.Add()

Javascript looks like … the above :D Lots of curly braces, a semicolon to end each command.

This article was last modified on January 7, 2012

Comments (0)

Loading comments...