You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can I bind a Voice Control voice command to run a Shortcut shortcut?

I want to bind a Shortcut shortcut to a Voice Control command. How can I do that? Specifically I want to bind the phrase "daily note" to the Shortcut shortcut "Daily note".

MacBook Air 13″, macOS 12.0

Posted on Dec 21, 2021 12:19 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 21, 2021 1:52 PM

Presently, in Monterey, there is no direct access to Shortcuts from the Accessibility panel's Voice Control. But it is workable because there is Shortcuts AppleScript dictionary support and one can associate an AppleScript script with your preferred "Daily note" custom voice command. I have tested this on Monterey 12.1 and it works.


First, visit your local ~/Library/Scripts/Applications folder. You can just click on the Desktop to wake Finder up, and press shift+command+G to open a Go To Folder dialog. Copy/Paste that tilde path string into the dialog, and press return. This will open a new Finder Window on the preceding folder. Create a new folder named Shortcuts, an arbitrary name that I picked for organizational reasons for future shortcut scripts. Double-click to open that Shortcuts folder.


Open the Script Editor from Dock > Launchpad > Other > Script Editor, and copy/paste the following code into it:


use scripting additions

tell application "Shortcuts"
	activate
	tell shortcut "New Note with Date"
		run
	end tell
end tell
return


For now, just click compile (hammer icon) and don't run it.


Choose Save… and with File format: text, save it as DailyNote.applescript on your Desktop. Then, press the option key and choose Save As… with File format: Script and the name will be DailyNote.scpt. Drag and drop this Script file into your open Shortcuts folder from above. Close that Finder window.


In System Preferences > Accessibility > Voice Control panel, do not activate it yet, but click Commands… and add your Daily note custom command. In that Perform menu, select Other, and walk out the above Shortcuts folder and select DailyNote.scpt. Now, Voice Control knows where to access that new Script.



Activate Voice Control now to enable Dictation. The first thing you will encounter when you speak "Daily note" is a typical macOS Monterey security challenge:



Click OK, and then the shortcut will start its initial dialog with you:


8 replies
Question marked as Top-ranking reply

Dec 21, 2021 1:52 PM in response to olavfosse

Presently, in Monterey, there is no direct access to Shortcuts from the Accessibility panel's Voice Control. But it is workable because there is Shortcuts AppleScript dictionary support and one can associate an AppleScript script with your preferred "Daily note" custom voice command. I have tested this on Monterey 12.1 and it works.


First, visit your local ~/Library/Scripts/Applications folder. You can just click on the Desktop to wake Finder up, and press shift+command+G to open a Go To Folder dialog. Copy/Paste that tilde path string into the dialog, and press return. This will open a new Finder Window on the preceding folder. Create a new folder named Shortcuts, an arbitrary name that I picked for organizational reasons for future shortcut scripts. Double-click to open that Shortcuts folder.


Open the Script Editor from Dock > Launchpad > Other > Script Editor, and copy/paste the following code into it:


use scripting additions

tell application "Shortcuts"
	activate
	tell shortcut "New Note with Date"
		run
	end tell
end tell
return


For now, just click compile (hammer icon) and don't run it.


Choose Save… and with File format: text, save it as DailyNote.applescript on your Desktop. Then, press the option key and choose Save As… with File format: Script and the name will be DailyNote.scpt. Drag and drop this Script file into your open Shortcuts folder from above. Close that Finder window.


In System Preferences > Accessibility > Voice Control panel, do not activate it yet, but click Commands… and add your Daily note custom command. In that Perform menu, select Other, and walk out the above Shortcuts folder and select DailyNote.scpt. Now, Voice Control knows where to access that new Script.



Activate Voice Control now to enable Dictation. The first thing you will encounter when you speak "Daily note" is a typical macOS Monterey security challenge:



Click OK, and then the shortcut will start its initial dialog with you:


Dec 22, 2021 7:39 AM in response to olavfosse

Yes, it is tedious. My thoughts were that if you were entering text via Dictation, then saying Hey Siri would just enter that text string, and not invoke, "Hey Siri run shortcut New Note with Date."


I will experiment further this afternoon to see what actually happens on Monterey when Voice Control is active and text entry is ongoing. That "Hey Siri" is an actual Dictation command.

How can I bind a Voice Control voice command to run a Shortcut shortcut?

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