🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19908

Re: Can I define a key command (like Cntrl+Num 1) to a style (WIN)?

#19908
From: Jay Fraser
Date: Thu, 14 Nov 2002 15:56
14 lines
1861 bytes
Are you asking how to do it in a script, or in general? 

In general, you open the "Modify Paragraph Style Options" window by double-clicking on the style in the "Paragraph Styles" Palette. Click in the box to the right of the word "Shortcut:", and type your key command. 

As I understand it, the program will only accept a 2-key combination: either shift or command, plus one of the number keys on the numeric-keypad. IOW, [shift]+[1] is acceptable using the 1 on the keypad, but not acceptable if you use the 1 that is above the Q. [command] + [1] is also acceptable. (I usually set it up so the [shift] key applies character styles, and the [command] key applies paragraph styles.) The option or control modifyer keys cannot be used, nor can you use just one key. 
(this is on the mac; I'm sure the PC is similar but different) 

If you are trying to do this in a script: I tried a search of "shortcut" in the InD Scripting guide, and didn't get any hits, so that might mean you are SOL. 

I don't know your workflow, but you can create a template w/ styles and shortcuts already defined ... 

Good luck! 

Jay
Technical Details
Message-ID: <1de697ed.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de697ed.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3b01201da99d99d5
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-14 08:24:06 PST
From: "Jay Fraser" <jayfraser@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Can I define a key command (like Cntrl+Num 1) to a style (WIN)?
Message-ID: <1de697ed.0@WebX.la2eafNXanI>
Date: Thu, 14 Nov 2002 07:56:17 -0800
References: <1de697ed.-1@WebX.la2eafNXanI>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit