Login About Gallery
Backup & Restore Shortcuts
COMMENT
Backup and Restore Shortcuts Created by @robric18 Version 1.2 tweaked by @mvan231
TEXT
{ "Shortcut Name":"Backup and Restore Shortcuts", "Author":"Robric18", "Current Version":"1.2", "RoutineHub ID":"3923", "What's New":"added mvan231's tweaks" }
SCRIPTING
Get dictionary from
Text
VARIABLES
Set variable
Update Info
to
Dictionary
SCRIPTING
Choose from Menu
Backup
SCRIPTING
Ask
Name of shortcut contains ... (leave blank to list all)
Input Type
Text
Default Answer
Text
SHORTCUTS
Get my shortcuts
FILES
Filter
My Shortcuts
where
Name
contains
Sort by
Name
Order
A to Z
Limit
SCRIPTING
Choose from Menu
No
SCRIPTING
Choose from
Files
Prompt
Select shortcuts to backup
Select Multiple
Select All Initially
Yes
SCRIPTING
Choose from
Files
Prompt
Select shortcuts to backup
Select Multiple
Select All Initially
End Menu
DOCUMENTS
Create Folder
Service
iCloud Drive
Path
/Shortcuts/
Backups/
Current Date
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Backups/
Current Date
Overwrite If File Exists
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
File Path
/Shortcuts/example.txt
Error If Not Found
TEXT
SCRIPTING
If
Text
contains
Current Date
TEXT
Otherwise
SCRIPTING
If
File
has any value
TEXT
Current Date
File
Otherwise
TEXT
Current Date
End If
End If
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Backups/ListOfBackupFolders.txt
Overwrite If File Exists
SCRIPTING
Show alert
Shortcuts Backed Up
Title
Shortcuts Backed Up
Show Cancel Button
Restore
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
File Path
/Shortcuts/example.txt
Error If Not Found
TEXT
File
Choose Folder
TEXT
Split
Text
by
New Lines
SCRIPTING
Choose from
Split Text
Prompt
Pick date of backup you want to retrieve
Select Multiple
SCRIPTING
If
Chosen Item
is
Choose Folder
file.select Under Construction
Otherwise
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
File Path
/Shortcuts/example.txt
Error If Not Found
FILES
Filter
File
Sort by
Name
Order
A to Z
Limit
SCRIPTING
Choose from
Files
Prompt
optional
Select Multiple
End If
TEXT
1) When you press OK a new screen will open asking you to create an iCloud link. Press "Create Link" 2) You will be taken to a screen with the link. Press "Get Shortcut" 3)You will be brought to the Add Shortcut page in shortcuts. You can change the name of the shortcut here if you desire. Scroll to the bottom of the page and press "Add Untrusted Shortcut" 4) Your backed up shortcut will now be restored to Shortcuts.
SCRIPTING
Show alert
Preparing to Restore Shortcut
Title
Preparing to Restore Shortcut
Show Cancel Button
DOCUMENTS
Get link to
If Result
SAFARI
End Menu
URL
https://routinehub.co/api/v1/shortcuts/
Update Info
/versions/latest
NETWORK
Get contents of
URL
Options Under Construction
SCRIPTING
Get dictionary from
Contents of URL
SCRIPTING
Get
Value
for
Version
in
Dictionary
SCRIPTING
If
Dictionary Value
is greater than
Update Info
TEXT
You have version
Update Info
of
Update Info
installed. An update to version
Version
is available. If you wish to update press OK. Otherwise press Cancel. What's New in this version?
Notes
SCRIPTING
Show alert
Update Available
Title
Update Available
Show Cancel Button
SAFARI
Open
URL
Otherwise
End If
DOCUMENTS
Make
tar.bz2
archive from
Menu Result
Archive Name
Current Date
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Backups/
Current Date
Overwrite If File Exists
DOCUMENTS
Confirm Before Deleting

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 18 days ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0