Login About Gallery
Get URL to Run Shortcuts
Accepts
Text
COMMENT
// Description This shortcut helps you pick a shortcut, or shortcuts, and create links to run them from anywhere. Copies the link(s) to the clipboard to be pasted anywhere that accepts text. When it’s run, you’re given the option to copy the links as just plain URLs, in Markdown format, as Rich Text, or as a bookmarklet. The bookmarklet can be saved as a web browser bookmark and then when clicked, it will pass the current webpage’s URL as input to the shortcut. If you’re already editing the shortcut in question, simply select its title and share it to this shortcut to generate its URL on the spot.
COMMENT
// About This shortcut was created by Jarrod Blundy (http://heyjb.me) and is part of the HeyDingus Shortcuts Library (https://heydingus.net/shortcuts) where you can find more shortcuts, tips, and in-depth explainers. Please consider a donation (http://tipjb.me) if you find this shortcut fun or useful. Thank you. 🙌 Version 1.3 - Updated 2024-04-05 Learn more and get the latest version of this shortcut: https://heydingus.net/shortcuts/get-url-to-run-shortcuts
COMMENT
// Run This Shortcut You can run this shortcut from its URL (such as from within a note, calendar event, or to-do item): shortcuts://run-shortcut?name=Get%20URL%20to%20Run%20Shortcuts
SCRIPTING
If
Shortcut Input
has any value
COMMENT
Simply select the shortcut’s name from title bar, and share it to this shortcut with the share sheet. Or kick it off from the macOS Services menu after selecting the title. Present a menu of formats from which you can choose to copy to your clipboard.
SCRIPTING
URL
Encode
Shortcut Input
SCRIPTING
Choose from Menu
shortcuts://run-shortcut?name=URL Encoded Text
TEXT
shortcuts://run-shortcut?name=
URL Encoded Text
// Run This Shortcut You can run this shortcut from its URL (such as from within a note, calendar event, or to-do item): shortcuts://run-shortcut?name=URL Encoded Text
TEXT
// Run This Shortcut You can run this shortcut from its URL (such as from within a note, calendar event, or to-do item): shortcuts://run-shortcut?name=
URL Encoded Text
End Menu
SHARING
Copy
Menu Result
to clipboard
Local Only
Expire At
Today at 3 pm
Otherwise
SHORTCUTS
Get my shortcuts
SCRIPTING
Choose from Menu
👉 Choose from list
VARIABLES
Set variable
shortcutsList
to
My Shortcuts
🔤 Choose from list (alphabetical)
FILES
Sort by
Name
Order
A to Z
Limit
VARIABLES
Set variable
shortcutsList
to
Files
📂 Choose from folder
SHORTCUTS
Get my shortcuts
VARIABLES
Set variable
shortcutsList
to
My Shortcuts
🔍 Search for shortcut
SCRIPTING
Ask
Search for… (case sensitive)
Input Type
Text
Default Answer
Text
FILES
Filter
My Shortcuts
where
Name
contains
Sort by
None
Limit
VARIABLES
Set variable
shortcutsList
to
Files
SCRIPTING
Count
Items
in
shortcutsList
SCRIPTING
If
Count
is less than
1
SCRIPTING
Show alert
Informational Message
Title
optional
Show Cancel Button
SCRIPTING
Exit shortcut with
Result
End If
End Menu
SCRIPTING
Choose from
shortcutsList
Prompt
Select a Shortcut
Select Multiple
Select All Initially
COMMENT
Make sure these choices match the Dictionary key below.
LIST
Rich Link
Markdown Link
Plain URL
Bookmarklet
SCRIPTING
Choose from
List
Prompt
Which kind of text to copy?
Select Multiple
SCRIPTING
Repeat with each item in
chosenShortcuts
VARIABLES
Set variable
shortcutName
to
Repeat Item
URL
shortcuts://run-shortcut?name=
Repeat Item
VARIABLES
Set variable
shortcutURL
to
URL
TEXT
javascript:(function() { var currentPage = window.location.href; var encodedURL = encodeURIComponent(currentPage); var newURL = "
shortcutURL
&input=" + encodedURL; window.location.href = newURL; })();
VARIABLES
Set variable
bookmarklet-script
to
Text
DICTIONARY
<inline variable>
[Run
shortcutName
shortcut](
shortcutURL
)
<inline variable>
[
shortcutName
](
shortcutURL
)
<inline variable>
shortcutURL
<inline variable>
bookmarklet-script
SCRIPTING
Get
Value
for
textType
in
Dictionary
SCRIPTING
If
Dictionary Value
does not have any value
SCRIPTING
Show alert
Informational Message
Title
optional
Show Cancel Button
COMMENT
Make sure the Dictionary keys match the List choices above.
SCRIPTING
Exit shortcut with
Result
End If
SCRIPTING
If
textType
is
Rich Link
DOCUMENTS
Make rich text from
Text
Otherwise
VARIABLES
End If
VARIABLES
Add
If Result
to
finalText
End Repeat
SHARING
Copy
finalText
to clipboard
Local Only
Expire At
Today at 3 pm
SCRIPTING
Count
Items
in
finalText
SCRIPTING
If
Count
is
1
TEXT
'
textType
' shortcut
shortcutName
copied!
Otherwise
TEXT
textType
shortcut
Count
s copied!
End If
SCRIPTING
Show alert
Copied to clipboard!
Title
Copied to clipboard!
Show Cancel Button
End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0