I want a nice script to anchor

Creative Cloud applications blocked

If IT has blocked your access to the applications of the Creative Cloud desktop app, you should contact the IT administrator and apply for authorization. It is faster as follows:

  1. Find the following file on your computer
    Mac OS: / Library / Application Support / Adobe / OOBE / Configs / ServiceConfig.xml
  2. Copy the file to your desk
  3. Open the file with Textedit or another text editing program
  4. Change all the values ​​on false stand in true around.
  5. Copy the file back and click Replace when the finder asks you:
    Mac OS: / Library / Application Support / Adobe / OOBE / Configs / ServiceConfig.xml
  6. Restart the computer.
  7. Start the Creative Cloud desktop application and check whether you have access to the applications.



Script: Quotation marks for different languages

With the new InDesign update (February 2020 release) Adobe has delivered various "community" scripts. The "Community" folder with the new scripts appears in the Scripts panel next to the "Application" and "User" folders. The new "Info" icon will take you to the Adobe scripting help pages. All scripts are briefly described here. With the "InsertTypographerQuote" script, you can easily insert typographic quotation marks before and after the selected text. In the script itself you can configure the characters for the quotation and the lead as Unicode. Search for the lines SetQuotes.QUOTES_START and SetQuotes.QUOTES_END and enter the Unicode for the desired characters. You can get the Unicode of a character from the Glyphs palette in InDesign. Single and double quotation marks for Germany, Switzerland, France and the English quotation marks are already available. If the script doesn't fit your needs, you just duplicate the script, make your adjustments, and just rename the script.

InDesign script and XML: calculate discount

Saturday cracker at PENNY, weekend at LIDL: The price war among brand discounters is entering a new round.

Customers can follow this weekly in the brochures and direct mail. The "Calculate discount" script can be very useful for agencies who design these offers with InDesign or have them generated automatically. The figures such as list sales price, strike price and savings are marked as XML. As soon as the list sales price and the strike price are updated, the missing size can be calculated by double-clicking in the scripts palette.

Generate text anchors and hyperlinks via script

If a document has a structured structure, e.g. in a catalog or a lexicon, then all hyperlinks can be generated automatically with an InDesign script. The reader of an interactive PDF can easily get to the next link with one click. Creating these hyperlinks manually in the InDesign document can be quite a tedious task. If the product names have been formatted with a certain paragraph or character format, as shown in the illustration of an electronics catalog, then all text anchors can be created automatically with an InDesign script. In the next step, another script can then use the created text anchors to check further occurrences of the text chain in the document and thus create all hyperlinks. An InDesign script can run for 10 minutes to create 5000 hyperlinks.

Conditional text Reloaded

The InDesign function "Conditional Text" is a special function that is used, for example, for the use of manuals with several variants. A "light" version can be created and exported from a longer document with just a few clicks. This function is also useful for programmers and scripters to temporarily hide texts or tables in the text flow.

For the technology-savvy editor with Adobe InCopy or Adobe InDesign, the "Conditional Text" can be an alternative to copy and paste. As you can see in the picture, the sports editor finished the article before the end of the game. But please don't forget to display the correct version before the page goes to print!

Script: XML markup with FindChangByList

The InDesign GREP search is a very powerful tool with which very complex search patterns can be stored for the document.
It is also very suitable for marking up documents with XML tags. These are required in order to reuse the document e.g. online in the correct formatting. InDesign does provide some features for assigning formats to XML tags, but these are rarely used in practice.
This article describes how an InDesign script is used to mark up a document with XmlTags. The XML> Tag field is available for this in the GREP dialog under "Replace format".
It becomes difficult if you want to brace an XML tag with another XML tag using a script, i.e. if you want to create a new higher-level element. For this, InDesign offers the user the "New parent element" command in the XML structure if several XML elements are selected. Unfortunately, this command is not available to the scripter under JavaScript.

The following detour makes it possible to brace XML elements. Please note the order of the "GREP search + replace"

1. Search for the content ". * \ R" and the paragraph format e.g. "Period" and replace the format e.g. with the XML tag "ul"

2. Search for the paragraph format "period" and replace it with the XML tag "li"

With the example script "FindChangeByList.jsx" supplied by Adobe, these two grep searches can be combined so that you can prepare your document for export as XML with a single double click.

Scripts: Paletten, .jsxbin and #targetengine

There are two types of dialogues within InDesign: the dialog as a "palette" and the so-called "modal dialog". If a "Modal Dialog" is open, InDesign waits until the user has clicked the OK button and the dialog is closed again (InDesign example dialog: Search for font).

If the dialog is created as a palette, InDesign is not blocked and actions in the background are possible. The dialog just 'floats' in front of the InDesign application.

In order for a palette to work as expected, a so-called target engine in the

#targetengine "nametargetengine"

To be defined.

And so that the developer can protect the source code of the script, the ESTK offers the possibility to save the script as a binary file. The script files then end with '.jsxbin'.
Unfortunately, the target engine is lost here, so that the script palette is not executed correctly.

So that both the script code is protected and the palette is executed in its own target engine, the following trick helps:

1. Save the JSX file as a binary file in JSXBIN format
2. Open the JSXBIN file with a text editor such as TextWrangler
3. Remove all breaks using Find and Replace
4. Copy the string you received in step 3) into the app.doScript command of a new JSX file.
5. At the beginning of the script you add the line #targetengine "nametargetengine".
6. Save the file as a JSX file.

So you get a single file that executes the script with a palette as desired and at the same time encrypts the entire script code.

InDesign: The font "Times" keeps popping up

Perhaps you are one of those InDesign users who like to convert a rectangular frame into a text frame. All you have to do is click in the rectangular frame with the text tool.

The problem with this: With this approach, the font "Times New Roman" can appear out of nowhere as a missing font if it is not available on your computer. How can this happen?

The text frame that was generated from the rectangle is assigned a special paragraph format, namely the format "[No paragraph format]". This style cannot be edited using the Paragraph Styles palette. In older InDesign versions, "Times New Roman" was the standard font and is now included in the paragraph format "[No paragraph format]".

With a trick you can change the paragraph format and remove the annoying "Times" from your document forever:

  1. Create a text frame out of a rectangle as described above.
  2. Activate the "Find font" dialog via the InDesign menu item
    Font> Find Font ...
  3. Select the missing font "Times New Roman" and choose the new standard font under "Replace with" (e.g. "Minion Pro Regular").
  4. Activate the checkbox "'Change all' also redefines formats".
  5. Click the "Change All" button.

With the checkmark activated under point 4) you also change the standard format "[No paragraph format]".

InDesign CC: Place image in InDesign via URL

With an InDesign Extension from CC2017, images can be placed in an InDesign document using the URL address with just a few clicks.

InDesign script: remove brackets and quotation marks

This InDesign script helps with corrections in the text. For example, you mark a text with quotation marks or brackets and execute the script "TrimTextwahl.jsx" with a double click. The script removes the first character from the text string and the last character from the text string.

InDesign script: convert numbers between 2 and 12 into text

For the writing of numbers, the Duden specifies:
"In front of signs, abbreviations of dimensions, weights, types of money, etc., the number must be written in digits (example: 3 km; 7.4 kg; 6 EUR). If the corresponding full form is used instead of the abbreviation, you can use both digits as well as in letters: 11 kilometers or eleven kilometers; 2 euros or two euros. You can attract more attention by using a number (e.g. crank with 2 shafts) ".

The two scripts "Numbers-to-Text-Prepare.jsx" and "Numbers-to-Text-Replace.jsx" will help you to check your text. With the first script, digits in front of abbreviations and characters are marked as conditional text and can then be hidden. The publisher can store a GREP list for digits that should not be replaced in a config file.

With the script "Numbers-to-Text-Replace.jsx" the user searches for and replaces all digits between 2 and 12 and converts them to text. The user decides whether the number should be converted or not. If the text is at the beginning of the sentence, the user decides on the text with capitalization (see video below)

New extension: WordPress importer from InDesignScript.de

Often you cannot avoid copy & paste when content is to be reused for another channel (e.g. web or app). For the combination online with "WordPress" and InDesign for the print version, InDesignScript.de now offers a new extension for Adobe InDesign CC with the WordPress Importer. With the WordPress Importer, articles from a WordPress website can be imported into an InDesign template with just a few clicks. All headline formats and the "Paragraph" format of the website are translated into the corresponding paragraph formats of the InDesign template. I.e. Bold on the web is also Bold in the print version.
The featured image is also downloaded from the WordPress site and placed as a link in the InDesign template. In this way, the layout artist can quickly create a selection of articles that were first published online without leaving InDesign.
InDesignScript.de offers a demo version that can be downloaded from the www.indesignscript.de website.

Find and replace polygons using an InDesign script

Complex search patterns can be created using the InDesign "Find and Replace" function
Define to replace texts and text combinations. Objects with certain object properties can also be found. Unfortunately, the InDesign search cannot reliably find any text that has been converted into paths. So what should you do if your own company logo appears as a path in 25,000 InDesign documents and has to be replaced by another logo? This is where an InDesign script can provide valuable services. A text converted into paths is a polygon for InDesign. In the first step, the searched polygon is analyzed by a script for very specific properties such as the number of path points. Then each polygon in the document is compared with these properties and, if they match, replaced by the new polygon.

Bridge HotFolder: Start the InDesign script via drag & drop

Do you already have a script for InDesign, Illustrator or Photoshop, but want to automate the start of the application (e.g. InDesign) and the execution of the script even further?

Then Adobe Bridge can help with setting up a hot folder.
Because Adobe Bridge has the JavaScript interface "BridgeTalk", with which scripts of a very specific application can be executed.

For example, you can drag your InDesign file over the bridge into the monitored folder and start the script automatically.


Generate PDF print sheets from xml files
Input: XML or CSV
Output: InDesign print sheets with corresponding benefits as PDF export

Create InDesign documents from IDML files
Input: IDML
Output: InDesign document (.INDD in the corresponding InDesign version)

Pack and send InDesign documents
Input: INDD
Output: Packaged folder with links and fonts

So that your workstation is not blocked, the installation can of course take place on a separate workstation and the files are then copied over a network volume.

InDesignScript.de will be happy to help you set up the hot folder and execute the script.

Place snippet and import new XML

If the content is available as XML documents, you can proceed as shown in the video to generate new pages:

1. Create an InDesign snippet from a sample document.

2. Open the productive document.

3. Set under InDesign Preferences> File Handling> Snippet Import to "Original Position".

4. Use the InDesign Place function to place the appropriate snippet for the left or right side. A new XML node is now created in the InDesign XML structure.

5. Select the newly created XML element in the InDesign XML structure and import the XML document with the desired content using the "Import XML" command. Make sure that the item "Import into selected element" is active in the import options.

The new content is now loaded into the existing sample XML. This method can be used well if the content is available as XML and a large number of identical layouts are to be generated.

InDesign CC: Place images via URL

With this new extension for Adobe InDesign (from version CC) you can place images via a URL. If your images are managed via an image system and you know the server address of the desired image (e.g. http://www.indesignscript.de/bilder/indesignscript.png), you can save this URL in the image frame.

The InDesign extension "Image Import" reads the URL, downloads the image and places the image in the selected frame. The extension supports all common file formats (.PSD, .jpg, .tif, .ai) and redirects are recognized.

If this extension fits your workflow, InDesignScript.de will be happy to provide a demo version.

Font change within a headline

By combining one or more fonts, you may be able to save yourself the search and thus also the costs of a new font.

Simply create a corresponding character format in InDesign for the desired font.
Then you combine the formats using a paragraph format with the function "nested format" and let the last formats repeat [Repeat:] (see illustration).

From InDesign CC2017 to CC2015

"I cannot open the InDesign document!" Said the layout artist, because she is not using the latest version of InDesign (currently InDesign CC2017). InDesign also notifies the user in a message that a newer version of InDesign is needed. Then the creator of the document should provide an IDML so that it can be edited.
Or: If there is a workstation with InDesign CC2017 in the office, then all documents in a folder can first be exported to an IDML using a script and then saved as an InDesign document in the desired format. The script also converts all InDesign documents in sub-folders.

Replace typographic quotes

Anyone who takes over texts with copy & paste or imports a Word or XML document knows the problem. The typographical, double, quotation marks above and below (99 - 66) do not appear, but the "American" quotation marks above. InDesign makes it easy to replace the American quotation marks with the correct double quotation marks.
Select the desired quotation mark in the InDesign preferences ("Dictionary").
Then you search for the character (") with the search and replace function for text and replace it with the same character (").
Before you say "No, this doesn't work", try it out or watch this video.


Replacement with typographic quotes with search and replace

Download: InDesign calendar template 2017

Scripted and packaged with InDesign CC 2017: A free InDesign calendar template for 2017 to download.

InDesignScript.de wishes all visitors a Merry Christmas 2016 and a Happy New Year 2017!

InDesign Feature: Show format deviations

The "Show format deviations" function was only available as a free script up to the InDesign CC 2015 version. The feature is now available as a button in the Paragraph and Character Styles palette. If the button is active, all deviations from the assigned paragraph or character format are displayed with a colored background.

InDesign CC 2017: Cross-column footnotes

Many authors have had to wait over a decade for this new InDesign feature: cross-column footnotes. For a text frame with several columns, the "Show footnotes across columns" box can be activated via the text frame options (apple + B) in the new "Footnotes" tab.

Keep previous InDesign versions when upgrading

If you want to keep previous versions on your computer when updating InDesign, you have to activate the "Advanced Options" button before updating with the Creative Cloud Installer (see figure).
Under the "Advanced Options" you will find the "Remove previous versions" check box, which is activated by default. Deactivate this box to keep previous versions of InDesign (e.g. InDesign CC 2015) on the computer.

InDesign CC2017: The new features at a glance

CEP: Load RSS feed into InDesign palette

Many content management systems (CMS) offer the option of providing the content as an "RSS feed" in a standard XML format.
With the CEP plug-in RSS reader for Adobe InDesign CC, the content can be displayed directly in an InDesign palette (now: control panel).
In the next step, the content is converted directly into an InDesign snippet and placed on the page.

Produce faster with InDesign templates and XML rules

If the data for the layout is available as XML and the layout is structured, InDesign can be used to create so-called XML rules define. The data is then placed in the layout taking these XML rules into account.

As an XML rule, for example, can be defined:

  • Add a break after the paragraph
  • Add a tab after the element
  • Format the XML element with a specific character or paragraph format
  • Add a space before the element, but not if the element is at the beginning of the text frame.
  • Add a round bracket before and after the element e.g. (EUR 12.00)
  • Add a currency symbol in front of the element (e.g. $ 120.00)

The KatalogImNu tool from InDesignScript.de helps manage InDesign templates and XML data and makes it easier to create XML rules. More info

Another article about XML rules

Insert HTML ...

The InDesign function under the menu item Object> "Insert HTML ..." has been available since version CS6. It is mainly intended for the creation of digital publications. For example, YouTube videos or Google Maps can easily be added to an eBook or eMagazine.
A customer of InDesignScript.de has now used this function for a newsletter to hotel guests to display the daily updated weather forecast from wetter-deutschland.com (see illustration). The print is of course a bit pixelated, but still a good idea!

Swatches and CC Libraries

Libraries are now called CC Libraries in InDesign CC 2015.3. These libraries can be shared with other layout designers using the keyword "collaboration". CC Libraries can now also contain color fields. The color fields required for collaboration can be transferred to the CC Library using the color field palette (see illustration)

Publish online sample

Example output from Publish Online. The document was created with InDesign CC and integrated into a website as HTML via Publish Online.

InDesign XML: "brace" Xml elements

If you want to prepare an InDesign document for XML export, the following InDesign function could be very useful.

You can use the InDesign Xml Tag Palette to create a parent tag element for one or more Xml elements.

To do this, mark the desired Xml elements in the InDesign document (you must not mark the Xml elements in the Xml structure of InDesign).

Then activate the desired superordinate Xml-Tag in the InDesign Xml-Tag palette, which should "brace" the selected elements. In the Xml Tag palette, the option "Attach" is automatically activated if you have marked it correctly.

InDesign script: A Sudoku generator with solutions

Generate Sudokus as a 9 x 9 InDesign table with the solution by double-clicking in InDesign? The InDesign script "Sudoku-Generator" can do that. The design of the generated tables can be adapted, as can the size of the tables. So you can simply copy and paste the tables into your layout. The script generates the Sudokus in four different difficulty levels: easy, medium, difficult, expert.

Book recommendation: automating InDesign (2nd edition)

The second edition of the most extensive book in German on the subject of InDesign scripting has now been published by dpunkt-Verlag. Gregor Fellenz encourages his readers to automate InDesign via GREP and Co. A "must-have" for every InDesign scripter!



Book order from InDesignScript.de

InDesign: Create a 2016 calendar with a double click

There are several ways to design a calendar with InDesign. However, some methods are quite technical. The InDesign script "Calendar Assistant 2016", on the other hand, is very simple. You simply generate an InDesign document with German public holidays with a double click. The current settings are intended for a German calendar with public holidays on 12 pages. With the setting "German" and "Calendars per Page = 12" you also get all months of the year on one page.

GREP: Find texts between "Text A" and "Text B"

The InDesign GREP search, which can be used to find certain texts and text combinations, is very powerful and fast. However, it can take an hour to find the right GREP search for your own needs.

If the text to be searched is structured as shown in the figure, then this GREP search will achieve your goal:

(? s) ^ (? i) (Headline) (. *?) (\ d {5,7} - \ d?) $



(? s): Across break characters

Text: "Headline"


(? i): Ignore upper and lower case

^: and must be at the beginning of the paragraph

look for it

(.*?): any text


(\ d {5,7} - \ d?): Number combination separated by a "-"

$: is at the end of the paragraph.


Further examples:

From the initial to the final bullet point

From a number ("1.") to the final price (€ 12.80)


When a certain paragraph or character format is a requirement, the scripting engine comes into play.


From the headline in 40 pt pink to the file number in 8 pt Arial

Be careful with tables. These are not recognized by the search (. *?).



InDesign keyboard shortcut: Close all documents

Anyone who has ever created InDesign documents automatically using a script,

he'll be happy about this keyboard shortcut. Because with the following

Keyboard shortcuts will close all documents again (without saving).


Apple + Alt + Shift + W


This saves the use of an InDesign script.

Keyboard shortcut for InDesign script menu

In order to make your script as easily accessible to the user as possible, you can also make your script available as a menu item.

To do this, the script must be loaded when InDesign is started. A sample script is available for download below. If only one menu item is not sufficient and a keyboard shortcut is also required, then there is a problem for the InDesign script:

You can create a keyboard shortcut for the menu item for the current session (using the InDesign command Edit> Keyboard Shortcuts> Scripts), but these settings are lost the next time InDesign is started, as the menu items are recreated when InDesign is started. In this way, a new so-called Action ID is also assigned, which is then different from the ID used by the shortcut.

With a trick you can use the same Action ID over and over again. You simply save the Action ID as a label in the InDesign application. For this you use the commands app.insertLabel (...) and app.extractLabel (...).

InDesign: Fewer W's in the document with F2

To switch between the normal view and the preview view in InDesign,

Adobe has set up the keyboard shortcut "W" via the tools.

Of course, this shortcut must not be used if the cursor is currently in a text frame. Otherwise a new character "W" will be unintentionally in

pasted the text.

To prevent this from happening, InDesignScript.de recommends this shortcut

to put on the function key "F2".

To do this, activate the menu item Edit "> Keyboard commands ... in InDesign.

and define for the product area "Tools", for the command "Switch between standard view and preview" the keyboard command "F2" (see figure below).

With this keyboard shortcut you are now on the safe side.


Snippet Placer for InDesign CC

The InDesign script Snippet Placer 2.0 from InDesignScript.de is now also available for InDesign CC.

With the InDesign Script Snippet Placer you can very quickly place images and snippets in your document. Text files (e.g. for captions) can also be imported. It is therefore ideal for catalog production and database publishing. You only need to enter the file name in a text frame in the form ## myDatei.jpg ## or ## myBU.txt ##, and the images, snippets or text will be automatically placed in this frame. (see picture).


Application example: The operator of a photo book page allows images and captions to flow into an InDesign template via the Snippet Placer.


The advantage of placing snippets: All content can be edited directly on the page afterwards.


New in the CC version:

- Placed texts are given the paragraph format of the placeholder text

- Snippets and images can also be placed in inline frames

- New interface design


InDesign CS6, CC: Duplicate and link objects

Since InDesign CS6, objects can be linked to one another using the "content recording tool". This allows you to create a layout, duplicate it on the press sheet and link it to the original. If there are changes, you only need to make them once in the original.

In the example below you can see a sheet of labels with the text "Platzhalter", which should be replaced with the text "Placeholder". The original is in the upper left corner. All duplicates are linked to the original, which you can recognize by the link symbol. As soon as there is a change in the original, a yellow exclamation mark appears in the duplicates. You can apply all changes with a double click in the shortcut palette.

The new print sheet is ready!

InDesign CC 2014: Generating QR Codes in series

The creation of QR codes with InDesign CC has been expanded in Adobe InDesign CC (2014): QR codes can now be created in series and of course placed in an InDesign document.


The contents of the QR code (e.g. a URL link to a website or contact details for a business card) are saved in a specific format in a .CSV file.


As soon as this CSV file is imported using the InDesign function "data merging", InDesign recognizes the QR code format (see figure below) and creates the corresponding graphic.


For example, you can quickly create a large number of property exposés with QR codes. The QR code contains a link to the relevant website with further information.

OSX: Show hidden files

Occasionally you also need the view of hidden files in the OSX Finder.

This is how the Finder can be switched via the Terminal window:


Show hidden files:


defaults write com.apple.finder AppleShowAllFiles true

killall finder


Do not show hidden files:


defaults write com.apple.finder AppleShowAllFiles false

killall finder


DPS: import sidecar.xml without article

Even if all articles for the issue have already been uploaded to the issue via the Folio Builder Panel, the metadata can be added via the sidecar.xml. To do this, the sidecar.xml is simply stored in its own folder and uploaded using the "Import multiple articles" command. The "Import multiple articles" command expects a folder to be selected. And here you simply select the folder with the sidecar.xml file.

InDesign Layout: Use a template as a library

Recurring layout elements can be stored in libraries or outside the page on the mounting surface. The creation of snippets is of course also a possibility. But have you ever thought of hiding the layout elements on an unused InDesign template? Advantage of this method:


- The layout elements are hidden but can be reached with just a few clicks and are visible in full size

- The layout elements can be placed with the option "Insert at original position".

- No other file (e.g. for a library) has to be opened.


DPS: Working with sections

Adobe DPS translates the term "sections" as "rubric". In the metadata for the individual articles of a folio there is also the "Section" field, which can easily be mistaken for the Sections.

So if you want to work with sections (rubrics), you need the "Rubriken" field, which is only available via

digitalpublishing.acrobat.com is editable.


What sections are and what you can do with them is explained here:














DPS: Analyze .folio files

When working with Adobe DPS, it is often useful to take a closer look at the uploaded .folio files.

Before uploading via the Folio Builder Panel, InDesign saves the .folio files under OS X in this directory (see also screenshot below):


Home / Library / Preferences / StageManager. #####. #### / Local Store / dmp


The Finder makes it easy to see which articles require a disproportionately large amount of storage space.


On the Mac, the unzip command can be used via the Terminal program to unzip the .folio files, because a .folio file is nothing more than a zip archive.


Interactivity: multi-state object and buttons that hide themselves

Creating a slide show with several buttons that show a certain status of a multi-status object (MSO) is no problem. It gets trickier when the MSO is over a text and the button hides itself when you click it again (see figure below).

You will receive a sample document and instructions in PDF format for a donation.


DPS: Email hyperlink with subject line

DPS v22: Filter for the Adobe Content Viewer

With version 22 of the Digital Publishing Suite, filters can be stored for the library. This will make it easier for your readers to organize the library. Another application: the library can be filtered by language.