Reply To: How to assign shortcut to Cursor Key Increments

Home Page / Forums / General InDesign Topics (CLOSED) / How to assign shortcut to Cursor Key Increments / Reply To: How to assign shortcut to Cursor Key Increments

#58534

Oh whatever, I'm bored — here is a longer script with a fancy dropdown list. You can populate the list with your favourite values, and assign a keyboard shortcut to this script to have all of them at the tips of your fingers.

(It's a Javascript; copy, paste into Adobe's ESTK Editor, and save as “NudgeNudge.jsx” into your User Scripts folder.)

//DESCRIPTION:Set Cursor Nudge Value
// A Jongware Script 28-Jan-2011

var yourList = [“0.01”, “0.1”, “0.25”, “0.5”, “1”, “2”, “5”, 10];
var val = app.activeDocument.viewPreferences.cursorKeyIncrement;
var aDialog = app.dialogs.add({name:”Nudge Nudge (Wink Wink)”, canCancel:true});
with (aDialog)
{
with(dialogColumns.add())
{
with(dialogRows.add())
{
staticTexts.add({staticLabel:”&Nudge”, minWidth:80});
var setWidth = realComboboxes.add({editValue:val, minWidth:100, largeNudge:10, smallNudge:1, minimumValue:0.01,maximumValue:100, stringList:yourList});
}
}
}

if (aDialog.show() == true)
app.activeDocument.viewPreferences.cursorKeyIncrement = setWidth.editValue;

This article was last modified on January 28, 2011

Comments (0)

Loading comments...