Create an iCloud link for a shortcut
TEXT
Text

Text
VARIABLES
Set variable
NewName
to
Text
NUMBER
0

Number
VARIABLES
Set variable
Num0
to
Number
NUMBER
1

Number
VARIABLES
Set variable
Num1
to
Number
VARIABLES
Set variable
PrevChar
to
Number
SCRIPTING
Show alert
Current Date
Title
[{'class': 'magic', 'value': 'Current Date', 'glyph': 'assets/cat/Date.svg', 'UUID': ''}]
DOCUMENTS

File
VARIABLES
Get
File
VARIABLES
Set variable
Input
to
File
DOCUMENTS
Get
Name
from
Input

Name
SCRIPTING
Count
Characters
in
Name

Count
TEXT
Split
Name
by
Every Character

Split Text
SCRIPTING
Repeat
Count

Repeat Results
SCRIPTING
Get
Items in Range
Repeat Index
to
Repeat Index
from
Split Text

Item from List
SCRIPTING
If
Item from List
is not
VARIABLES
Set variable
PrevChar
to
Num0
VARIABLES
Set variable
NewName
to
Combined Text
SCRIPTING
Otherwise
SCRIPTING
If
PrevChar
is
0
VARIABLES
Set variable
PrevChar
to
Num1
VARIABLES
Set variable
NewName
to
Combined Text
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
VARIABLES
Get
Input
DOCUMENTS
Get link to
Input

Link to File
SHARING
Copy
Link to File
to clipboard
SCRIPTING
Show alert
Current Date
Title
[{'class': 'magic', 'value': 'Current Date', 'glyph': 'assets/cat/Date.svg', 'UUID': ''}]
SHARING
Get clipboard

Clipboard
SAFARI
Open
Clipboard
SCRIPTING
Exit shortcut with
Clipboard
Showcuts