Login About Gallery
Preferences
Accepts
Text
VARIABLES
Set variable
argv
to
Input
COMMENT
Store and retrieve preferences. Use it to store API keys, settings, and content that you want to share between shortcuts. Demo: https://www.icloud.com/shortcuts/cf74fba5a4664fcb836adb1ee9d88ad7
DICTIONARY
Shortcut
Preferences
Author
@supermamon
Version
1.0
Released
17 Oct 2018
Changes
1 item
Config
----------
Filename
Settings.json
CheckUpdates
1
COMMENT
Load /Shortcuts/Settings.json file
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
File Path
/Shortcuts/example.txt
Error If Not Found
VARIABLES
Set variable
Settings
to
Input
SCRIPTING
Count
Characters
in
Input
SCRIPTING
If
Input
Condition
COMMENT
If does not exist, create the Settings file
TEXT
{}
SCRIPTING
Set name of
Input
to
Filename
DOCUMENTS
Save
File
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Text
Overwrite If File Exists
VARIABLES
Set variable
Settings
to
Input
End If
COMMENT
Perform the requested actions. Default to show all if nothing is passed
DICTIONARY
all
VARIABLES
Add
Input
to
argv
SCRIPTING
Get
First Item
from
List
VARIABLES
Set variable
argv
to
Input
VARIABLES
Get
argv
SCRIPTING
Get dictionary from
Input
VARIABLES
Set variable
req
to
Input
SCRIPTING
Get
All Keys
in
Dictionary
VARIABLES
Set variable
actions
to
Input
SCRIPTING
If
Input
Condition
VARIABLES
Get
Settings
SCRIPTING
Set
req
to
req
in
Dictionary
VARIABLES
Set variable
Settings
to
Input
SCRIPTING
Set name of
Input
to
Filename
DOCUMENTS
Save
File
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Text
Overwrite If File Exists
SCRIPTING
Get
Value
for
req
in
Dictionary
VARIABLES
Set variable
ret_val
to
Input
End If
VARIABLES
Get
actions
SCRIPTING
If
Input
Condition
VARIABLES
Get
Settings
VARIABLES
Set variable
ret_val
to
Input
End If
VARIABLES
Get
actions
SCRIPTING
If
Input
Condition
VARIABLES
Get
Settings
SCRIPTING
Get
Value
for
req
in
Dictionary
VARIABLES
Set variable
ret_val
to
Input
End If
VARIABLES
Get
ret_val

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 7 days ago

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

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0