Invoke a menu item by ID

spacer
Not every menu item is available via the InDesign scripting API,
Fortunately, we can always invoke a menu item by name, or even better, ID.

Find the item ID by running this Snippet from Jongware:

1
2
3
4
5
res = [];
for(a=0; a<app.menuActions.length; a++){
    res.push(app.menuActions[a].name+"("+app.menuActions[a].area+") = "+app.menuActions[a].id);
}
app.selection[0].contents = res.join(" , ");

Then use the id to invoke the menu:

1
2
3
try{  
    app.menuActions.itemByID(id).invoke();  
}catch (e){ alert(e)};

Insert Impression Numbers

spacer

Formatting the numbers right on the imprint page can be frustrating when you go from a left arrangement to a centred imprint page. This script inserts the numbers for you in the right order and comes with en-dashes in between.

Download/View Insert_Impresion_Numbers.jsx

Break Frames Over Pages

spacer

This script breaks image frames (rectangles) over the separate pages that makes up a spread. It is also a great cleaning tool as it cuts everything off beyond the bleed.

Download or view Break_Frames.jsx

Randomise Point Coordinates

spacer
With this script you can add some noise and randomness to the otherwise straight nature of indesign frames. The script contains the following settings:

1
2
3
4
5
6
7
randomisePoints     : true,
onlyStraightLines   : false,
subDivisions        : 1,
subDivChancePercent : 50,
minDistance         : 10,
maxmovement         : 2
 

If randomisePoints is set to true every point in the path will get get displaced by the maxmovement amount. All values in the settings object are in the measure unit of the document. Set onlyStraightLines to true to remove all the curves if there are any. New points are interpolated with subDevision. Setting subDevision to 0 means no extra points will be added to the path. You can add a chance of subdivision in percentage with subDivChancePercent. Setting subDivChancePercent to 100 makes sure there is always a subdevision happening unless you set minDistance above 0 minDistance makes sure points that are within a certain distance donโ€™t get subdivided.

Download or view Randomise_Point_Coordinates.jsx

Foot- and endnote tools

spacer
Several scripts here to manage footnotes: convert footnotes to (dynamic) endnotes or margin notes; convert footnotes to column-spanning footnotes; set footnotes in columns; inline notes; and managing the space between main text and IDโ€™s footnotes.

Letter Presser

spacer

With this script you can recreate that real analog letter setting feel in your publication. Metal type was never as straight as digital type and with this tool you can add some of that analog noise back into your publication.

This script sets a randome baselineshift between two values to all text found in seleced paragraph style. It can also set random thin outlines for that extra letter-press feel.

Works great on headlines where you need some random jittering. Keep values nice and small, subtlety is key.

Download or View Letter_Presser.jx

Find and replace GREPs

Remove traling whitespace
Find what:

1
([\t~m~<~f~|~S~s~>~/~.~3~4~%]+)$

Change to:

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.