Testing for window name in InDesign

@JimmyHartington, I changed your script block to use the forum syntax for script blocks:

How to Put Code in a Forum Code Block

Just insert your script between the lines with the triple backquotes:

image

See Markdown for Code Blocks

To get syntax highlighting, then use the keyword in lower case for that language, like:
applescript
javascript
html

Here is a macro that will paste the script on the clipboard into the forum in the proper format:

MACRO: KM Forum -- Paste Script Block

1 Like