In macOS Tahoe, you can assign Spotlight quick keys to a shortcut or action, and I wondered if there might be a way to get a list of quick key assignments and the shortcut or action they invoke.
The following plist file appears to contain the quick keys. Just to make sure, I created a new quick key for a test shortcut, and it was almost immediately reflected in this plist.
/Users/robert/Library/Preferences/com.apple.Spotlight.plist
The following is a snippet from this plist, and the tt quick key at the end calls a shortcut I’ve created named Empty Trash.
<key>SSActionKeyboardAliasStoreKey</key>
<dict>
<key>com.apple.shortcuts</key>
<dict>
<key>0293D944-E22E-4A2D-958F-609AC139B177</key>
<string>miifw</string>
<key>036F36CF-073C-4E66-951F-A1751C4847AA</key>
<string>xx</string>
<key>042955D8-7E2E-4679-BEE1-020CD09765E0</key>
<string>st</string>
<key>04D56F93-4A37-4C35-A01E-9CB9CD85613A</key>
<string>w21</string>
<key>052F47C6-6D84-4AE7-B3D8-A413B25A6F46</key>
<string>cf</string>
<key>0B935398-D20F-42EB-99A8-7D43F6B4B352</key>
<string>ir</string>
<key>1048</key>
<string>cls</string>
<key>1070F44E-F262-43AD-B688-207425584E2D</key>
<string>tt</string>
<key>110C7FE8-4784-489C-8FEE-8F8BB54A15F8</key>
I assume that the key value is what I want, and I wondered if anyone knows how to get a name value for this key (or even if this is possible). I can read the plist file with the defaults
command but I haven’t gotten beyond that point. Thanks for the help.