Using the menu Window>Tools->Scripts are already supplied with scripts displayed. Custom scripts are in the Users folder and have the ending .jsx. To the file browser to access the directory, where the scripts are found, one must simply right-click on the script and then “Open in Finder” click, we arrive at the simplest to the most deeply hidden folder. There you can create new custom scripts.
To test the file “changeLanguage.jsx” in the same folder (with me/…/Library/Preferences/Adobe InDesign/Version 7.0/en_GB/Scripts/Scripts Panel) be created. This appears autotmatisch in InDesign.
To edit the Dati, you just have to select InDesign Right click on the file and edit script and it will open the editor / IDE from Adobe Light: ExtendScript Toolkit.
It is important, set as the first, for the program to run the script, in our case: Adobe InDesign CS5 select the drop top right.
In addition, the auto-complete enabled: ExtendScript Toolkit->Preferences>Help>By car. Completion Report.
Example 1: Hello World
The Hello World is written quickly and before that includes a directive to InDesign, it is clear, for the program to run the script:
This procedure can be executed by pressing F5 or Apple R.
$.writeln ("Konsole log");
I had the problem, Comments that was hidden, that's because, that the font was not installed for comments. Simple font change: ExtendScript Toolkit->Preferences>Fonts and colors:
- all indicators entkreuzen
- Comment /**/ ->Font: Verdana Select
- Comment // ->Font: Verdana Select
A reference / overview of the object model of InDesign finds here.