VARIABLES
Set variable
Language
to
Text
TEXT
Split
Language
by
Custom
:

Split Text
DOCUMENTS
Replace
App
with
$1
in
Item from List

Updated Text
VARIABLES
Set variable
argv
to
Shortcut Input
SCRIPTING
If
Count
is greater than
1
SCRIPTING
Get
Items in Range
2
to
End Index
from
Split Text

Item from List
SCRIPTING
Count
Items
in
Item from List

Count
VARIABLES
Set variable
Count
to
Count
DATE
Current Date

Date
VARIABLES
Set variable
Application.shortcutsMap.start
to
Date
SCRIPTING
If
Count
is greater than
50
MATHS
Count
×
.32
Options Under Construction

Calculation Result
MEASUREMENT
Duration
{'OutputUUID': 'C8D7A79C-9DE7-4D21-8B0F-A1482C0C6BF8', 'Type': 'ActionOutput', 'OutputName': 'Calculation Result'}
s

Measurement
MEASUREMENT
Convert
Measurement
into
Duration
in
min

Converted Measurement
MATHS
Round
Converted Measurement
to
Tenths

Rounded Number
VARIABLES
Set variable
Estimated Time
to
Rounded Number
DOCUMENTS
Replace
__COUNT__
with
Count
in
Localized Strings

Updated Text
DOCUMENTS
Replace
__TIME__
with
Estimated Time
in
Updated Text

Updated Text
SCRIPTING
Show alert
Localized Strings
Title
[{'class': 'magic', 'value': 'Localized Strings', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
MATHS
Count
÷
10
Options Under Construction

Calculation Result
MATHS
Round
Calculation Result
to
Ones Place

Rounded Number
VARIABLES
Set variable
Parts
to
Rounded Number
NUMBER
0

Number
VARIABLES
Set variable
Num Processed
to
Number
NUMBER
1

Number
VARIABLES
Set variable
Current Part
to
Number
DOCUMENTS
Replace
__COUNT__
with
Count
in
Localized Strings

Updated Text
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
End If

If Result
COMMENT
✳️✳️✳️✳️◻️✳️✳️✳️
✳️◻️◻️✳️◻️✳️◻️✳️
✳️✳️✳️✳️◻️✳️✳️✳️
✳️◻️✳️◻️◻️✳️◻️◻️
✳️◻️◻️✳️◻️✳️◻️◻️
SCRIPTING
Repeat with each item in
Item from List

Repeat Results
SCRIPTING
URL
Decode
Repeat Item 2

URL Encoded Text
VARIABLES
Set variable
Shortcut.name
to
URL Encoded Text
FILES
Filter
All Shortcuts
where
[{'class': 'filter-property', 'value': 'Name'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark inline', 'value': [{'class': 'magic', 'value': 'Shortcut.name', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]}] Get 1 File



Files
VARIABLES
Set variable
Shortcut.file
to
Files
VARIABLES
Set variable
Shortcut.plist
to
Files
SCRIPTING
If
Shortcut.file
does not have any value
COMMENT
The shortcut does not exist, so ignore.
SCRIPTING
Otherwise
SCRIPTING
If
Count
is greater than
20
COMMENT
Calculate progress if the number of shortcuts to process is over 20.
MATHS
Num Processed
+
1
Options Under Construction

Calculation Result
VARIABLES
Set variable
Num Processed
to
Calculation Result
MATHS
10
×
Current Part
Options Under Construction

Calculation Result
MATHS
Num Processed
÷
Count
Options Under Construction

Calculation Result
MATHS
Calculation Result
×
100
Options Under Construction

Calculation Result
MATHS
Round
Calculation Result
to
Ones Place

Rounded Number
VARIABLES
Set variable
Percentage
to
Rounded Number
SCRIPTING
If
Percentage
is greater than or equal to
Calculation Result
CALENDAR
Get time between
Application.shortcutsMap.start
and
Current Date
in
Seconds

Time Between Dates
DOCUMENTS
Replace
__PERCENTAGE__
with
Percentage
in
Localized Strings

Updated Text
DOCUMENTS
Replace
__NUM__
with
Num Processed
in
Updated Text

Updated Text
DOCUMENTS
Replace
__COUNT__
with
Count
in
Updated Text

Updated Text
DOCUMENTS
Replace
__DURATION__
with
Time Between Dates
in
Updated Text

Updated Text
NOTIFICATIONS
Show notification
Input
Options Under Construction
MATHS
1
+
Current Part
Options Under Construction

Calculation Result
VARIABLES
Set variable
Current Part
to
Calculation Result
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
Set name of
Shortcut.plist
to
Shortcut.file
.plist

Renamed Item
DOCUMENTS
Get text from
Renamed Item

Text
VARIABLES
Set variable
Shortcut.source
to
Text
COMMENT
Get the glyph and color.
TEXT
Split
Shortcut.source
by
Custom
Pattern.chop

Split Text
SCRIPTING
Get
Last Item
from
Split Text

Item from List
VARIABLES
Set variable
Shortcut.settings
to
Item from List
COMMENT
Glyph
TEXT
Match
Pattern.glyph
in
Shortcut.settings

Matches
TEXT
Get
Group At Index
1
in
Matches

Text
VARIABLES
Set variable
Shortcut.glyph
to
Text
COMMENT
Icon
TEXT
Match
Pattern.color
in
Shortcut.settings

Matches
TEXT
Get
Group At Index
1
in
Matches

Text
VARIABLES
Set variable
Shortcut.color
to
Text
COMMENT
Get any LaunchCut Tags
TEXT
Split
Shortcut.source
by
Custom
Pattern.tags

Split Text
VARIABLES
Set variable
Tag.parts
to
Split Text
SCRIPTING
Count
Items
in
Tag.parts

Count
SCRIPTING
If
Count
is greater than
1
VARIABLES
Set variable
Shortcut.tags
to
Input
SCRIPTING
Get
Item At Index
2
from
Tag.parts

Item from List
TEXT
Split
Item from List
by
Custom
</string>

Split Text
SCRIPTING
Get
First Item
from
Split Text

Item from List
TEXT
Split
Item from List
by
New Lines

Split Text
DOCUMENTS
Replace
App
with
$1
in
Split Text

Updated Text
SCRIPTING
Repeat with each item in
Updated Text

Repeat Results
SCRIPTING
Count
Characters
in
Repeat Item 3

Count
SCRIPTING
If
Count
is greater than
0
VARIABLES
Add
Repeat Item 3
to
Shortcut.tags
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Otherwise
VARIABLES
Set variable
Shortcut.tags
to
Empty.string
SCRIPTING
End If

If Result
COMMENT
Get the file size
DOCUMENTS
Get
File Size
from
Shortcut.file

File Size
MATHS
Format
File Size
into
Bytes
Options Under Construction

Formatted File Size
VARIABLES
Set variable
Shortcut.fileSize
to
Formatted File Size
COMMENT
Shortcut Type
TEXT
Split
Shortcut.settings
by
Custom
Pattern.type

Split Text