My macOS shortcuts from shortcuts app are not being shown in the list in the action configuration pane

Describe the bug
I have many shortcuts in macOS shortcuts app.
I have already made some keyboard shortcuts in bettertouchtool to trigger apple shortcuts.
Now I am trying to make a new one and no shortcuts are showing on the list.
Additionally I can not edit other already made actions.

Screenshots


Device information:

  • Type of Mac: MacBook Air m1
  • macOS version: 12.3.1 (21E258)
  • BetterTouchTool version: 3.779

Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):

When first starting BTT it asks whether you want to allow access to Shortcuts, maybe you accidentally clicked no. Can you have a look in System Preferences => Security & Privacy => Privacy => Automation?

Thanks for the tip.
This is what I see there...

Screenshot 20220517-16.42.23

looks all good. Have you already tried to restart your system? Shortcuts can still be somewhat buggy sometimes.

I have updated to 12.4 (21F79) and restarted a couple of times.
Unfortunately I still cannot see the shortcuts lists.

One thing to add to the conversation that I do not know if will help.
I have set some keyboard shortcuts to run some apple shortcuts.
Someday I made a clean up to my apple shortcuts and I renamed a shortcut for which I had set a keyboard shortcut in btt.
Then I realised that the shortcut didn't work anymore.
At that point I had forgotten that I had set the shortcut in btt so I went in apple shortcuts, in the shortcut's settings in order to see why the keyboard shortcut weren't working any more. There is a setting there to add a keyboard shortcut. I tried to add a keyboard shortcut but it wouldn't take it. The cell remained empty. That's because the keyboard shortcut was already taken by btt.
Then I remembered that I had set the keyboard shortcut in btt and went there to change the apple shortcuts that was triggered to the renamed one.
And then I realised that I could not see any apple shortcut in the btt list.

Screenshot 20220518-07.53.43

Could you try to run this script in Apple's Script Editor app and see whether it generates any output? Make sure to select "JavaScript" on the top left:

s = Application('Shortcuts Events');  
function listAll() {
 let array = [];  
 for(let shortcut of s.shortcuts()) {
 let folder = shortcut.folder(); 
let icon = shortcut.icon();   
if(folder) { 
array.push({name: shortcut.name(),  color: shortcut.color(), folder: folder.name()}) 
} else { 
array.push({name: shortcut.name(),  color: shortcut.color(), folder: 'Uncategorized'}) 
  } 
}   return array; }  listAll()

No experience here...
Copied the code above.
Opened script editor app
Changed applescrit to javascript as you said
and clicked the run button.

Below the result...

Interesting, sounds like it can not access some shortcut which causes the script to fail.

Could you try to run this in the same way?

s = Application('Shortcuts Events');  
function listAll() {
 let array = [];  
 
 for(let shortcut of s.shortcuts()) {
 try {
 let folder = shortcut.folder(); 
let icon = shortcut.icon();   
if(folder) { 
array.push({name: shortcut.name(),  color: shortcut.color(), folder: folder.name()}) 
} else { 
array.push({name: shortcut.name(),  color: shortcut.color(), folder: 'Uncategorized'}) 
  } 
  } catch(e) {
   list.push("error");
  }
}  
 return array;
  } 
  listAll()

Sorry typo:

s = Application('Shortcuts Events');  
function listAll() {
 let array = [];  
 
 for(let shortcut of s.shortcuts()) {
 try {
 let folder = shortcut.folder(); 
let icon = shortcut.icon();   
if(folder) { 
array.push({name: shortcut.name(),  color: shortcut.color(), folder: folder.name()}) 
} else { 
array.push({name: shortcut.name(),  color: shortcut.color(), folder: 'Uncategorized'}) 
  } 
  } catch(e) {
   array.push("error");
  }
}  
 return array;
  } 
  listAll()

can I somehow send you a pm?

There is a list of all my shortcuts.
To errors have been found.

{"name":"Καταχώρηση εξόδων", "color":[0.21521323919296265, 0.7715266942977905, 0.32515448331832886], "folder":"Shared"}, "error" 

and

{"name":"Έξοδα.", "color":[0.9476615786552429, 0.34689861536026, 0.3696650564670563], "folder":"iPad widget"}, "error"

Weird, this looks like a bug in the Shortcuts app. Two of your shortcuts can not be accessed - unfortunately I can not tell which ones. I'll add a better error handling to the next version of BTT, so it will only exclude the shortcuts that can not be accessed and show the rest.

1 Like