Using Hook with Shortcuts

Here’s the Get Name script:
tell application "Shortcuts" to get name of front window

Here’s the Get Address script:

tell application "Shortcuts"
	set shortcut_name to name of front window
	set shortcut_id to id of shortcut shortcut_name
end tell
	
return "[" & shortcut_name & "](shortcuts://x-callback-url/open-shortcut?id=" & shortcut_id & ")"
2 Likes

You don’t need the Get Name script when Get Address returns a Markdown link.

1 Like