Winderup creates countless custom AppleScripts every year for InDesign CS2. Along the way, we've learned a few tricks. Although these samples are not the only way to accomplish these tasks, we hope you find them useful.
TEXT Scripts
Place Text On A Frame
Open an InDesign CS2 document. Then run fthe script and locate a text file at the prompt. The AppleScript imports the text file into the a newly created text frame. download
Count the Words in a Documnent
Simple AppleScript that reports the word count. download
Insertion Point-01
Avoid insertion point hell and review this example. It shows you how to insert text before and after existing text frame content. download
Insertion Point-02
Like the sample above, this script inserts text at a specific location in a text frame. However, this one does so by working with the parent story, rather than the text frame. download
Colors
Make a New Color
Provides syntax for the creation of new colors in InDesign CS2. download
Make a New Color-Subroutine
Like the AppleScript above, this script provides syntax for the creation of new colors in InDesign CS2, but as a subroutine. download
Layers
Make a New Frame on a Layer
Provides syntax for the creation of a new frame on a new layer. If the layer doesn't already exist, a new layer is created. download
|