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

Is it possible to set a specific part of a script filename as its keyboard shortcut?

Guide ,
Aug 29, 2025 Aug 29, 2025

For example, one of my scripts is named:
Open Image in PS-【Shift+F3】.jsx

Now, using another script for setting shortcuts, I want to coompulsory assign Shift+F3 as the shortcut for the above script.
That is, the 【】 portion should function as the keyboard shortcut.

 

You won't have to worry about the script filename being modified.

Thank you.

TOPICS
Feature request , How to , Scripting
120
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

Engaged , Sep 01, 2025 Sep 01, 2025

Hey @dublove 
Shortcuts are not accessible via Extendscript. I wish.

You are also not able to access system files, like the Shortcut file stored on your computer. This has been made on purpose by Adobe, to make it more secure.

The "only" viable way is to assign shortcuts by hand, via the Menus.
On some levels, you can trick Indesign and changing Styles shortcuts by importing/ overwritting styles from a file (which can be a script. That's what I do myself) and I've never seen anything else working. I

...
Translate
Engaged ,
Sep 01, 2025 Sep 01, 2025

Hey @dublove 
Shortcuts are not accessible via Extendscript. I wish.

You are also not able to access system files, like the Shortcut file stored on your computer. This has been made on purpose by Adobe, to make it more secure.

The "only" viable way is to assign shortcuts by hand, via the Menus.
On some levels, you can trick Indesign and changing Styles shortcuts by importing/ overwritting styles from a file (which can be a script. That's what I do myself) and I've never seen anything else working. I've read about snippets being able to do this, but I haven't never been able to make it work. Data can be imported, but not shortcuts (last time I checked)

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
Community Expert ,
Sep 02, 2025 Sep 02, 2025

@Fred.L said:

"I've read about snippets being able to do this, but I haven't never been able to make it work. Data can be imported, but not shortcuts (last time I checked)"

 

Hi Fred,

AFAIK, snippets' XML code can (must) be edited ( also by scripting ) to implement keyboard shortcuts for paragraph styles or character styles. Keyboard shortcuts for styles is not part of the DOM.

For "installed" script files you cannot use DOM scripting to apply keyboard shortcuts, I think.

You could invoke the menu for keyboard shortcuts, but that's it:

app.menuActions.itemByName("$ID/ShortcutsMenuItem").invoke();

 

Regards,
Uwe Laubender
( Adobe Community Expert )

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
Guide ,
Sep 02, 2025 Sep 02, 2025
LATEST

@Laubender 

@Fred.L 

I'm referring to modifying the shortcut key file using a script.
For example, my shortcut key File : "myShortcut.indk"

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