Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Remove Shortcut from Paragraph Styles

Engaged ,
Jan 25, 2010 Jan 25, 2010

Hi All,

Is it possible to remove shortcut from paragraph styles with script.

Thanks,

Shonky

TOPICS
Scripting
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 25, 2010 Jan 25, 2010

It's not listed in the ESTK Help, which suggests "No".

Translate
Community Expert ,
Jan 25, 2010 Jan 25, 2010

It's not listed in the ESTK Help, which suggests "No".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 25, 2010 Jan 25, 2010

Thanks again Jongware,

But there is not any other solution to remove shortcut without manually removing it?

Shonky

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 25, 2010 Jan 25, 2010

I'd agree with Jong, that it's not possible.

I don't know where the shortcuts are stored. If they are stored in a

text file, you could edit that file. I'm pretty sure that style

shortcuts are stored in the document though...

Harbs

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 25, 2010 Jan 25, 2010

A real shortcut in the sense of KBSC is implemented using the menu and action subsystem.

The style's shortcut is no such shortcut, the styles just store the virtual key (internal numbering of the keys, before any character is known) and a timestamp (for priorization of competing styles) in the document straight within their persistent data.

The SDK's IDML documentation knows a "kKeyboardShortcutPropertyScriptElement" which is hidden from the regular scripting languages.

ScriptID='kbsc', Name = "keyboard shortcut", Description = The keyboard shortcut for the style, Data Type = Array of 2 Short Integers.

Maybe you get lucky if you export a snippet with the style, strip that attribute and re-import.

Eventually it also works in AppleScript, if you artificially create such a script ID (left as an exercise) associated with a {0,0} array and assign that to the properties property of the style.

Dirk

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 26, 2010 Jan 26, 2010
LATEST

Now it is clear that remove shortcut not possible with Javascript.

Shonky

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines