How to add keyboard shortcuts for menu commands with variable?

I'll trying to add a keyboard shortcut for the "Export unmodified original for xx photo(s)" command in macOS Photos app. However, how can I capture this in the keyboard shortcuts definition?

MacBook Pro Apple Silicon

Posted on Nov 5, 2022 12:08 PM

Reply

Similar questions

2 replies

Nov 7, 2022 1:30 PM in response to Dustin_R_308

Of course, everwisher, knew all that. The problem is the statement, "exactly as the command appears in the app." You see, in Photos, the command isn't really "Export unmodified original for xx photo(s)" with "xx"-- it has a number there, like 1 or 273, and it's a different number each time. everwisher deserves an answer to the question asked, even if it's "you can't"


I, too, wish I knew how to do that kind of shortcut.

Nov 7, 2022 11:50 AM in response to everwisher

Greetings everwisher,


You can find help creating a keyboard shortcuts using the steps found here:


Create keyboard shortcuts for apps on Mac - Apple Support


"You can create your own keyboard shortcuts for menu commands in any macOS app, including the Finder. This might be useful if a global shortcut, which works the same with most apps, conflicts with a specific app shortcut. In this case, you could create a new key combination.


  1. On your Mac, choose Apple menu  > System Settings, click Keyboard  in the sidebar (you may need to scroll down), then click Keyboard Shortcuts on the right.
  2. Select App Shortcuts on the left, click the Add button , click the Application pop-up menu, then choose a specific app or All Applications.
  3. For example, to set a shortcut for a TextEdit command, choose TextEdit. If an app isn’t in the list, choose Other, then locate the app using the Open dialog. Some apps may not allow you to set keyboard shortcuts.
  4. If you want to set a shortcut for a menu command that appears in many apps, choose All Applications.
  5. In the Menu Title field, type the menu command for which you want to create a shortcut, exactly as the command appears in the app, including the > character (type ->), ellipses (type three periods without spaces or press Option-; (semi-colon)), or other punctuation.
  6. For example, to set a shortcut for the default ligature command in TextEdit (Format > Font > Ligatures > Use Default), you would type Format->Font->Ligatures->Use Default in the Menu Title field. To set a shortcut for the Export as PDF command (File > Export as PDF…), you would type File->Export as PDF… in the field.
  7. Click in the Keyboard Shortcut field, press the key combination that you want to use as the keyboard shortcut, then click Done.
  8. For example, press the Control, Option, and Z keys at the same time. You can use a key only once in a key combination."


Take care.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to add keyboard shortcuts for menu commands with variable?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.