Login About Gallery
Swing Updater Turbo Edition
COMMENT
Swing Updater Turbo Edition V.1.0 By: D3W10 DON'T CHANGE ANYTHING
DICTIONARY
Name
Swing Updater Turbo Edition
Version
1.0
Author
D3W10
RH ID
2807
RH Link
https://routinehub.co/shortcut/2807
SWebsite
https://swingupdate.netlify.com
Theme
Swing
VARIABLES
Set variable
Settings
to
Input
DICTIONARY
Swing
7 items
VARIABLES
Set variable
Themes
to
Input
VARIABLES
Get
Settings
SCRIPTING
Get
Value
for
Theme
in
Dictionary
VARIABLES
Set variable
Chosen Theme
to
Input
VARIABLES
Get
Themes
SCRIPTING
Get
Value
for
Chosen Theme
in
Dictionary
SCRIPTING
Get dictionary from
Input
VARIABLES
Set variable
Theme Icons
to
Input
DOCUMENTS
Create Folder
Service
iCloud Drive
Path
/Shortcuts/Swing Updater/SFU
DICTIONARY
Name
Settings
Version
Settings
RH ID
Settings
DOCUMENTS
Save
File
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Swing Updater/SFU/
Settings
Overwrite If File Exists
VARIABLES
Get
Shortcut Input
SCRIPTING
Get dictionary from
Input
VARIABLES
Set variable
InputDic
to
Input
SCRIPTING
If
Input
Condition
SCRIPTING
Get current IP address
Options Under Construction
SCRIPTING
If
Input
Condition
Otherwise
SCRIPTING
Show alert
🚫 Error 🚫
Title
🚫 Error 🚫
Show Cancel Button
DICTIONARY
Result
Internet unavailable
SCRIPTING
Exit shortcut with
Result
End If
VARIABLES
Get
InputDic
SCRIPTING
If
Input
Condition
Otherwise
SCRIPTING
Show alert
🚫 Error 🚫
Title
🚫 Error 🚫
Show Cancel Button
SCRIPTING
Exit shortcut with
Result
End If
DOCUMENTS
Create Folder
Service
iCloud Drive
Path
/Shortcuts/Swing Updater/SFU
DICTIONARY
Name
InputDic
Version
InputDic
RH ID
InputDic
DOCUMENTS
Save
File
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Swing Updater/SFU/
InputDic
.json
Overwrite If File Exists
URL
https://routinehub.co/api/v1/shortcuts/
InputDic
/versions/latest
NETWORK
Get contents of
URL
Options Under Construction
SCRIPTING
If
Input
Condition
Otherwise
SCRIPTING
Show alert
🚫 Error 🚫
Title
🚫 Error 🚫
Show Cancel Button
DICTIONARY
Result
RH ID error
SCRIPTING
Exit shortcut with
Result
End If
DICTIONARY
DownURL
https://routinehub.co/download/
RHServer
ChangeLog
ReleaseDate
RecentVersion
VARIABLES
Set variable
URLDic
to
Input
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
File Path
/Shortcuts/example.txt
Error If Not Found
SCRIPTING
If
Input
Condition
DICTIONARY
Result
Skipped
SCRIPTING
Exit shortcut with
Result
Otherwise
SCRIPTING
Count
Items
in
Input
SCRIPTING
If
Input
Condition
TEXT
Split
Text
by
New Lines
SCRIPTING
Get
Last Item
from
List
SCRIPTING
If
Input
Condition
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
File Path
/Shortcuts/example.txt
Error If Not Found
DOCUMENTS
Delete
Files
Confirm Before Deleting
End If
End If
DICTIONARY
current
InputDic
new
URLDic
TEXT
<html><head></head><body><script> // Swing Engine TE 1.0 function cmp (a, b) { let pa = a.split('.'); let pb = b.split('.'); for (let i = 0; i < Math.max(pa.length, pb.length); i++) { let na = Number(pa[i]); let nb = Number(pb[i]); if (isNaN(na)) na = 0; if (isNaN(nb)) nb = 0; if (na > nb) return "Rollback"; if (nb > na) return "Update"; } return "Updated"; }; let data =
CompareData
; document.write(cmp(data.current, data.new)); </script></body></html>
URL
data:text/html,
CompareHTMLCode
SAFARI
Get contents of web page at
URL
SCRIPTING
If
Input
Condition
VARIABLES
Get
InputDic
SCRIPTING
If
Input
Condition
Otherwise
NOTIFICATIONS
Show notification
Input
Options Under Construction
End If
TEXT
⬆️ 𝗨𝗽𝗱𝗮𝘁𝗲 ⬆️ A new version of
InputDic
is available to download, here are some information about it: 𝗡𝗮𝗺𝗲:
URLDic
𝗜𝗻𝘀𝘁𝗮𝗹𝗹𝗲𝗱 𝗩𝗲𝗿𝘀𝗶𝗼𝗻:
InputDic
𝗥𝗲𝗰𝗲𝗻𝘁 𝗩𝗲𝗿𝘀𝗶𝗼𝗻:
InputDic
𝗥𝗲𝗹𝗲𝗮𝘀𝗲 𝗗𝗮𝘁𝗲:
URLDic
𝗖𝗵𝗮𝗻𝗴𝗲𝘀:
URLDic
VARIABLES
Set variable
MenuInfo
to
Input
TEXT
BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Update;;;; ORG;CHARSET=utf-8:Update this shortcut to the recent version.; PHOTO;ENCODING=b:
Theme Icons
END:VCARD BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Skip;;;; ORG;CHARSET=utf-8:Skip this version FOREVER!!! PHOTO;ENCODING=b:
Theme Icons
END:VCARD BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Not now;;;; ORG;CHARSET=utf-8:Don't update
InputDic
now. PHOTO;ENCODING=b:
Theme Icons
END:VCARD
Otherwise
SCRIPTING
If
Input
Condition
VARIABLES
Get
InputDic
SCRIPTING
If
Input
Condition
Otherwise
NOTIFICATIONS
Show notification
Input
Options Under Construction
End If
TEXT
⬇️ 𝗥𝗼𝗹𝗹𝗯𝗮𝗰𝗸 ⬇️ A rollback is available for
InputDic
, probably because the owner of this shortcut change the version numbers, 𝗶𝘁'𝘀 𝘃𝗲𝗿𝘆 𝗿𝗲𝗰𝗼𝗺𝗺𝗲𝗻𝗱𝗲𝗱 𝘁𝗼 𝗱𝗼 𝘁𝗵𝗶𝘀 𝗿𝗼𝗹𝗹𝗯𝗮𝗰𝗸! 𝗡𝗮𝗺𝗲:
InputDic
𝗜𝗻𝘀𝘁𝗮𝗹𝗹𝗲𝗱 𝗩𝗲𝗿𝘀𝗶𝗼𝗻:
URLDic
𝗥𝗲𝗰𝗲𝗻𝘁 𝗩𝗲𝗿𝘀𝗶𝗼𝗻:
InputDic
𝗥𝗲𝗹𝗲𝗮𝘀𝗲 𝗗𝗮𝘁𝗲:
URLDic
𝗖𝗵𝗮𝗻𝗴𝗲𝘀:
URLDic
VARIABLES
Set variable
MenuInfo
to
Input
TEXT
BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Rollback;;;; ORG;CHARSET=utf-8:Rollback to the recommended version.; PHOTO;ENCODING=b:
Theme Icons
END:VCARD BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Skip;;;; ORG;CHARSET=utf-8:Skip this version FOREVER!!! PHOTO;ENCODING=b:
InputDic
END:VCARD BEGIN:VCARD VERSION:3.0 N;CHARSET=utf-8:Not now;;;; ORG;CHARSET=utf-8:Don't update
Theme Icons
now. PHOTO;ENCODING=b:
Theme Icons
END:VCARD
Otherwise
VARIABLES
Get
Shortcut Input
SCRIPTING
Get
Value
for
Message
in
Dictionary
SCRIPTING
If
Input
Condition
SCRIPTING
Show alert
🎉 Congratulations 🎉
Title
🎉 Congratulations 🎉
Show Cancel Button
Otherwise
End If
DICTIONARY
Result
Updated
SCRIPTING
Exit shortcut with
Result
End If
End If
End If
SCRIPTING
Set name of
Input
to
changesinfo.vcf
VARIABLES
SCRIPTING
Choose from
Input
Prompt
MenuInfo
Select Multiple
SCRIPTING
If
Input
Condition
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
File Path
/Shortcuts/example.txt
Error If Not Found
SCRIPTING
Set
Version
to
URLDic
in
Dictionary

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 years ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

55 more actions