COMMENT
Downloads public or private photos and videos from posts, stories, highlights, reels, etc at highest quality
2023-09-20 v3.2.7
https://routinehub.co/user/gluebyte
https://threads.net/@gluebyte
LIST

List
SCRIPTING
Get dictionary from
List

Dictionary
VARIABLES
Set variable
mainDict
to
Dictionary
SCRIPTING
If
Shortcut Input
has any value
MISSING
Under Construction
SCRIPTING
Otherwise
MISSING
Under Construction
SCRIPTING
End If

If Result
SCRIPTING
Get dictionary from
If Result

Dictionary
VARIABLES
Set variable
Output
to
Dictionary
SCRIPTING
If
Output
has any value
SCRIPTING
Open
dk.simonbs.Scriptable
SCRIPTING
If
Shortcut Input
has any value
SCRIPTING
Open
com.burbn.instagram
SCRIPTING
Otherwise
SCRIPTING
Open
com.apple.shortcuts
SCRIPTING
End If

If Result
SHORTCUTS
Run
Instagram Download
Input
Shortcut Input

Shortcut Result
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
If
Output
has any value
SCRIPTING
Wait
Output
SHORTCUTS
Run
Instagram Download
Input
Shortcut Input

Shortcut Result
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
If
Output
has any value
SCRIPTING
Show alert
Informational Message
SAFARI
Open
mainDict
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
If
Output
has any value
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
mainDict (gotoweb)

Menu Result
SAFARI
Open
mainDict
SCRIPTING
Exit shortcut with
Result
SCRIPTING
mainDict (downloadupdate)

Menu Result
NETWORK
Get contents of
https://routinehub.co/api/v1/shortcuts/7823/versions/latest
Options Under Construction

Contents of URL
TEXT
Match
(?<="id":\D?)\d+
in
Contents of URL

Matches
WEB
Expand
https://routinehub.co/download/
Matches
/

Expanded URL
DOCUMENTS
Replace
^.+icloud.com/
with
shortcuts://
in
Expanded URL

Updated Text
SAFARI
Open
Updated Text
SCRIPTING
Exit shortcut with
Result
SCRIPTING
mainDict (notnow)

Menu Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
SCRIPTING
Get dictionary from
Output

Dictionary
VARIABLES
Set variable
pref
to
Dictionary
SCRIPTING
If
Shortcut Input
has any value
TEXT
0

Text
SCRIPTING
If
WFInput?
has any value
TEXT
1

Text
SCRIPTING
End If

If Result
SCRIPTING
If
pref
does not have any value
SCRIPTING
Get
Value
for
msg.ashellprompt
OS
in
mainDict

Dictionary Value
SCRIPTING
Get
Value
for
haveashell
OS
in
mainDict

Dictionary Value
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
mainDict (getashell)

Menu Result
SAFARI
Open
https://apps.apple.com/app/id1543537943
SCRIPTING
Exit shortcut with
Result
SCRIPTING
haveashell

Menu Result
SCRIPTING
Set
has a-Shell mini
to
1
in
Dictionary

Dictionary
VARIABLES
Set variable
pref
to
Dictionary
VARIABLES
Set variable
savePref
to
mainDict
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
SCRIPTING
If
Output
has any value
SCRIPTING
Get
Value
for
allstory
pref
in
mainDict

Dictionary Value
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
mainDict (onestory)

Menu Result
SCRIPTING
Get dictionary from
Output

Dictionary
VARIABLES
Set variable
Output
to
Dictionary
SCRIPTING
사전 값

Menu Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
SCRIPTING
Get
Value
for
count
in
Output

Dictionary Value
SCRIPTING
If
Dictionary Value
is greater than
0
NETWORK
Get contents of
Output
Options Under Construction

Contents of URL
SCRIPTING
If
Contents of URL
contains
txt
SCRIPTING
Show alert
Informational Message
SCRIPTING
Set
count
to
mainDict
in
Dictionary

Dictionary
VARIABLES
Set variable
Output
to
Dictionary
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
Get
Value
for
count
in
Output

Dictionary Value
SCRIPTING
If
count
is greater than
0
SCRIPTING
Get
Value
for
selection.6
in
pref

Dictionary Value
SCRIPTING
If
Media Date
is greater than
2
SCRIPTING
Repeat with each item in
mainDict

Repeat Results
SCRIPTING
Set name of
Repeat Index
to
Repeat Item

Renamed Item
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Choose from
Repeat Results
Prompt
[{'class': 'magic', 'value': 'mainDict', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]

Chosen Item
MATHS
Chosen Item
-
2
Options Under Construction

Calculation Result
SCRIPTING
If
Calculation Result
is less than
1
TEXT
Combine
pref
with
Custom
Text

Combined Text
DOCUMENTS
Replace
.(..)$
with
Chosen Item
$1
in
Combined Text

Updated Text
TEXT
Split
Updated Text
by
Every Character

Split Text
SCRIPTING
Set
selection
to
Split Text
in
Dictionary

Dictionary
VARIABLES
Set variable
pref
to
Dictionary
SCRIPTING
Show alert
Informational Message