Jellycuts Helper
COMMENT
DO NOT CHANGE ANYTHING BELOW THIS LINE.
This shortcut is needed to connect Jellycuts to the shortcut app.
TEXT
True

Text
VARIABLES
Set variable
Save
to
Text
SCRIPTING
URL
Decode
Shortcut Input

URL Encoded Text
SCRIPTING
Get dictionary from
URL Encoded Text

Dictionary
SCRIPTING
If
Dictionary
has any value
VARIABLES
Set variable
Input
to
Dictionary
SCRIPTING
Otherwise
DICTIONARY

Dictionary
SHORTCUTS

Shortcut Result
SCRIPTING
End If

If Result
SCRIPTING
Get the
System Version

Device Name
VARIABLES
Set variable
Version
to
System Version
VARIABLES
Set variable
Link
to
Input
VARIABLES
Set variable
ShortcutName
to
Input
VARIABLES
Set variable
Action
to
Input
VARIABLES
Set variable
PassedShortcut
to
Clipboard
SCRIPTING
If
Action
is
Menu
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Import Shortcut

Menu Result
DICTIONARY

Dictionary
SHORTCUTS

Shortcut Result
SCRIPTING
Scan QR Code

Menu Result
DOCUMENTS
Scan QR/Barcode

QR/Barcode
TEXT
QR/Bar Code

Text
DICTIONARY

Dictionary
SHORTCUTS

Shortcut Result
SCRIPTING
Old Shortcuts

Menu Result
DICTIONARY

Dictionary
SHORTCUTS

Shortcut Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
SCRIPTING
If
Action
is
Import
DICTIONARY

Dictionary
SHORTCUTS

Shortcut Result
DOCUMENTS
Get link to
Shortcut Result

Link to File
DICTIONARY

Dictionary
SHORTCUTS

Shortcut Result
TEXT
Match
[^\/]+$
in
Link to File

Matches
URL
shortcuts://shortcuts/
Matches

URL
SAFARI
Open
URL
SCRIPTING
Exit shortcut with
URL
SCRIPTING
End If

If Result
SCRIPTING
If
Action
is
Create
DICTIONARY

Dictionary
TEXT
imported
bottom
top

Text
VARIABLES
Set variable
Shortcut
to
Text
SCRIPTING
Set name of
Shortcut
to
ShortcutName
.shortcut

Renamed Item
SCRIPTING
Exit shortcut with
Renamed Item
SCRIPTING
End If

If Result
SCRIPTING
If
Action
is
Save
SCRIPTING
If
Save
is
True
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
SCRIPTING
If
File
has any value
DOCUMENTS
Get text from
File

Text
TEXT
ShortcutName
Link
-
Text

Text
DOCUMENTS
Save
Text
Destination Path
/Shortcuts/Jellycuts/linksOverwrite If File Exists

Saved File
SCRIPTING
Otherwise
DOCUMENTS
Create Folder
Path
/Shortcuts/Jellycuts
TEXT
Link
-
ShortcutName

Text
DOCUMENTS
Save
Text
Destination Path
/Shortcuts/Jellycuts/linksOverwrite If File Exists

Saved File
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
If
Action
is
Lookback
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
DOCUMENTS
Get text from
File

Text
TEXT
Split
Text
by
New Lines

Split Text
VARIABLES
Set variable
Split
to
Split Text
SCRIPTING
Choose from
Split

Chosen Item
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Open in shortcuts

Menu Result
DOCUMENTS
Replace
[\s\S]*?-
with
World
in
Chosen Item

Updated Text
TEXT
Match
[^\/]+$
in
Updated Text

Matches
URL
shortcuts://shortcuts/
Matches

URL
SAFARI
Open
URL
SCRIPTING
Delete

Menu Result
DOCUMENTS
Replace
Chosen Item
with
World
in
Text

Updated Text
DOCUMENTS
Save
Updated Text
Destination Path
/Shortcuts/Jellycuts/linksOverwrite If File Exists

Saved File
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
Showcuts