Accepts
App Store Apps, Articles, Contacts, Dates, Email Addresses, WFFolderContentItem, Files, Images, iTunes Products, Locations, Map Links, Media, PDFs, Phone Numbers, Rich Text, Safari Web Pages, Text and URLs
SCRIPTING
Get
Value
for
FN
in
Shortcut Input

Dictionary Value
VARIABLES
Set variable
FN
to
Dictionary Value
VARIABLES
Set variable
CurrentDay
to
Current Date
DICTIONARY

Dictionary
VARIABLES
Set variable
MainDict
to
Dictionary
VARIABLES
Set variable
ReRun
to
MainDict
COMMENT
𝘚𝘦𝘵𝘶𝘱 𝘢𝘯𝘥 𝘧𝘪𝘭𝘦 𝘴𝘵𝘳𝘶𝘤𝘵𝘶𝘳𝘦 𝘴𝘵𝘢𝘳𝘵 𝘩𝘦𝘳𝘦
🔻🔻🔻
DOCUMENTS
Create Folder
Path
[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'MainDict', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
DOCUMENTS

File
SCRIPTING
If
File
does not have any value
URL
MainDict

URL
SCRIPTING
Get file of type
MainDict
from
URL

File of Type
SCRIPTING
If
File of Type
is not
nl
TEXT
I'm setting the preffered language to English. For this shortcut, and will remember this preference.

Text
SCRIPTING
Show
Text
DICTIONARY

Dictionary
SCRIPTING
Otherwise
TEXT
Ik zie dat de ingestelde taal op je apparaat Nederlands is. Ik heb de taal dan ook ingesteld hierop.

Text
SCRIPTING
Show
Text
DICTIONARY

Dictionary
SCRIPTING
End If

If Result
DOCUMENTS
Save
If Result
Destination Path
[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'MainDict', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]Overwrite If File Exists

Saved File
SCRIPTING
Otherwise
DOCUMENTS

File
SCRIPTING
End If

If Result
VARIABLES
Set variable
SettingsFile
to
If Result
SCRIPTING
Get
Value
for
Name
in
SettingsFile

Dictionary Value
SCRIPTING
If
Dictionary Value
does not have any value
SCRIPTING
Get
Value
for
Data.Lang.
SettingsFile
.Name
in
MainDict

Dictionary Value
SCRIPTING
Get
Random Item
from
Dictionary Value

Item from List
SCRIPTING

Provided Input
SCRIPTING
Set
Name
to
Provided Input
in
Dictionary

Dictionary
DOCUMENTS
Save
Dictionary
Destination Path
[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'MainDict', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]Overwrite If File Exists

Saved File
SHORTCUTS
Run
ReRun

Shortcut Result
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
COMMENT
𝘛𝘖𝘋 𝘨𝘳𝘦𝘦𝘵𝘪𝘯𝘨 𝘪𝘴 𝘥𝘦𝘵𝘦𝘳𝘮𝘪𝘯𝘦𝘥 𝘸𝘪𝘵𝘩 𝘵𝘩𝘦 𝘢𝘤𝘵𝘪𝘰𝘯𝘴 𝘩𝘦𝘳𝘦
🔻🔻🔻
DICTIONARY

Dictionary
VARIABLES
Set variable
TOD-Dict
to
Dictionary
DATE
Specified Date
Current Date
06:00

Date
DATE
Specified Date
Current Date
11:59

Date
DATE
Specified Date
Current Date
12:00

Date
DATE
Specified Date
17:59

Date
DATE
Specified Date
18:00

Date
DATE
Specified Date
23:59

Date
DATE
Specified Date
00:00

Date
DATE
Specified Date
Current Date
05:59

Date
SCRIPTING
If
Current Date
is between
MorningStart
and
MorningEnd
SCRIPTING
Get
Value
for
Greetings.
SettingsFile
.Morning
in
TOD-Dict

Dictionary Value
SCRIPTING
Get
Random Item
from
Dictionary Value

Item from List
TEXT
SettingsFile
RandomGreetMorning

Text
SCRIPTING
Show
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Current Date
is between
AfternoonStart
and
AfternoonEnd
SCRIPTING
Get
Value
for
Greetings.
SettingsFile
.Afternoon
in
TOD-Dict

Dictionary Value
SCRIPTING
Get
Random Item
from
Dictionary Value

Item from List
TEXT
SettingsFile
RandomGreetAfternoon

Text
SCRIPTING
Show
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Current Date
is between
EveningStart
and
EveningEnd
SCRIPTING
Get
Value
for
Greetings.
SettingsFile
.Evening
in
TOD-Dict

Dictionary Value
SCRIPTING
Get
Random Item
from
Dictionary Value

Item from List
TEXT
SettingsFile
RandomGreetEvening

Text
SCRIPTING
Show
Text
SCRIPTING
End If

If Result
SCRIPTING
If
Current Date
is between
NightStart
and
NightEnd
SCRIPTING
Get
Value
for
Greetings.
SettingsFile
.Night
in
TOD-Dict

Dictionary Value
SCRIPTING
Get
Random Item
from
Dictionary Value

Item from List
TEXT
SettingsFile
RandomGreetNight

Text
SCRIPTING
Show
Text
SCRIPTING
End If

If Result