Sunday, July 27, 2025
HomeiOS DevelopmentKeyboard shortcuts for Export Unmodified Unique in Photographs for Mac – Ole...

Keyboard shortcuts for Export Unmodified Unique in Photographs for Mac – Ole Begemann


Downside

  1. The Photographs app on macOS doesn’t present a keyboard shortcut for the Export Unmodified Unique command.
  2. macOS lets you add your individual app-specific keyboard shortcuts through System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts. It’s worthwhile to enter the precise spelling of the menu merchandise you need to invoke.
  3. Photographs renames the command relying on what’s chosen: Export Unmodified Unique For 1 Photograph“ turns into ”… Uniques For two Videos” turns into “… For 3 Gadgets” (for blended choices), and so forth. Argh!
  4. The System Settings UI for assigning keyboard shortcuts is extraordinarily tedious to make use of if you wish to add a couple of or two shortcuts.

Keyboard shortcuts for Export Unmodified Unique in Photographs for Mac – Ole Begemann
Dynamically renaming menu instructions is cute, however it turns into an issue if you need to assign keyboard shortcuts.

Answer: shell script

Right here’s a Bash script that assigns Ctrl + Decide + Cmd + E to Export Unmodified Originals for as much as 20 chosen objects:

#!/bin/bash

# Assigns a keyboard shortcut to the Export Unmodified Originals
# menu command in Photographs.app on macOS.

# @ = Command
# ^ = Management
# ~ = Possibility
# $ = Shift
shortcut='@~^e'

# Set shortcut for 1 chosen merchandise
echo "Setting shortcut for 1 merchandise"
defaults write com.apple.Photographs NSUserKeyEquivalents -dict-add "Export Unmodified Unique For 1 Photograph" "$shortcut"
defaults write com.apple.Photographs NSUserKeyEquivalents -dict-add "Export Unmodified Unique For 1 Video" "$shortcut"

# Set shortcut for 2-20 chosen objects
objects=(Photographs Movies Gadgets)
for i in {2..20}
do
  echo "Setting shortcut for $i objects"
  for object in "${objects[@]}"
  do
    defaults write com.apple.Photographs NSUserKeyEquivalents -dict-add "Export Unmodified Originals For $i $object" "$shortcut"
  achieved
achieved

# Use this command to confirm the end result:
# defaults learn com.apple.Photographs NSUserKeyEquivalents

The script is additionally accessible on GitHub.

Utilization:

  1. Give up Photographs.app.
  2. Run the script. Be at liberty to alter the important thing combo or depend increased than 20.
  3. Open Photographs.app.

Word: There’s a bug in Photographs.app on macOS 13.2 (and at the least some earlier variations). Customized keyboard shortcuts don’t work till you’ve opened the menu of the respective command at the least as soon as. So you should manually open the File > Export as soon as earlier than the shortcut will work. (For Apple people: FB11967573.)

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments