Login About Gallery
Icebox
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
LIST
SetGlobalVariable
BulkSave
vCardMenu
AddToGlobalVariable
TEXT
Combine
List
with
Custom
|
VARIABLES
Set variable
Bulk Function List
to
Combined Text
DICTIONARY
<inline variable>
<inline variable>
VARIABLES
Set variable
inputinfo
to
Dictionary
TEXT
Text
DOCUMENTS
Replace
(?m)^\s*\n
with
World
in
Shortcut Input
Case Sensitive
Regular Expression
TEXT
Combine
[Shortcut Input]
with
New Lines
TEXT
Split
[Combined Shortcut Input]
by
New Lines
SCRIPTING
Get
Value
for
function_separator
in
config
SCRIPTING
If
Dictionary Value
is
New Lines
VARIABLES
Set variable
elements
to
split by New Lines
Otherwise
SCRIPTING
Repeat with each item in
split by func config
DOCUMENTS
Replace
(?m)\n
with
World
in
Repeat Item
Case Sensitive
Regular Expression
VARIABLES
Add
Updated Text
to
elements
NOTHING
Nothing
End Repeat
End If
SCRIPTING
Get
First Item
from
elements
VARIABLES
Set variable
Function Name
to
Item from List
SCRIPTING
Set
function_name
to
Function Name
in
Dictionary
VARIABLES
Set variable
inputinfo
to
Dictionary
SCRIPTING
Get
Value
for
bulk_separator
in
config
SCRIPTING
If
Dictionary Value
is
New Lines
VARIABLES
Set variable
Element Groups
to
split by New Lines
Otherwise
SCRIPTING
Repeat with each item in
split by bulk config
SCRIPTING
If
Dictionary Value
is
New Lines
TEXT
Split
Repeat Item
by
New Lines
VARIABLES
Set variable
groupargs
to
Split Text
Otherwise
TEXT
Split
Repeat Item
by
Custom
function_separator
VARIABLES
Set variable
groupargs
to
Split Text
End If
COMMENT
Get function_name and remove it from list
SCRIPTING
Get
Items in Range
1
to
End Index
from
groupargs
DOCUMENTS
Replace
Function Name
with
World
in
Item from List
Case Sensitive
Regular Expression
SCRIPTING
Repeat with each item in
Updated Text
SCRIPTING
If
Repeat Item 2
has any value
VARIABLES
Add
Repeat Item 2
to
REAL
End If
End Repeat
TEXT
Combine
REAL
with
New Lines
VARIABLES
Add
Combined Text
to
Element Groups
VARIABLES
Set variable
REAL
to
Input
NOTHING
Nothing
End Repeat
End If
SCRIPTING
Repeat with each item in
elements
COMMENT
Function elements includes the function name so it has to check whether its an argument or function name. Reminder to change this into elements and include everything
MATHS
Repeat Index
-
1
Options Under Construction
SCRIPTING
SCRIPTING
Get dictionary from
inputinfo
SCRIPTING
Set
arg
Calculation Result
to
Repeat Item
in
Dictionary
SCRIPTING
Get
Items in Range
Repeat Index
to
End Index
from
elements
SCRIPTING
Set
arg
Calculation Result
toEnd
to
Item from List
in
Dictionary
End If
VARIABLES
Set variable
inputinfo
to
If Result
NOTHING
Nothing
End Repeat
SCRIPTING
Repeat with each item in
Element Groups
COMMENT
-0 this time since the Element Groups variable doesnt contain a function name
MATHS
Repeat Index
+
0
Options Under Construction
SCRIPTING
Set
group
Calculation Result
to
Repeat Item
in
Dictionary
SCRIPTING
Get
Items in Range
Calculation Result
to
End Index
from
Element Groups
SCRIPTING
Set
group
Calculation Result
toEnd
to
Item from List
in
Dictionary
VARIABLES
Set variable
inputinfo
to
Dictionary
SCRIPTING
If
Dictionary Value
is
New Lines
TEXT
Split
Repeat Item
by
New Lines
Otherwise
TEXT
Split
Repeat Item
by
Custom
function_separator
End If
SCRIPTING
Repeat with each item in
If Result
SCRIPTING
Set
group
Calculation Result
arg
Repeat Index 2
to
Repeat Item 2
in
Dictionary
SCRIPTING
Get
Value
for
group
Calculation Result
arg
Repeat Index 2
in
Dictionary
SCRIPTING
Get
Items in Range
Repeat Index 2
to
End Index
from
If Result
SCRIPTING
Set
group
Calculation Result
arg
Repeat Index 2
toEnd
to
Item from List
in
Dictionary
VARIABLES
Set variable
inputinfo
to
Dictionary
NOTHING
Nothing
End Repeat
NOTHING
Nothing
End Repeat
SCRIPTING
Show
inputinfo
COMMENT
Changing the function argument seperators could cause some issues
SCRIPTING
If
Function Name
is
NotionAPI
COMMENT
NotionAPI API_KEY Method json
TEXT
Combine
inputinfo
with
New Lines
NETWORK
Get contents of
https://api.notion.com/v1/pages
Options Under Construction
VARIABLES
Set variable
Return
to
Contents of URL
End If
SCRIPTING
If
Function Name
is
RemoveFromDictionary
COMMENT
RemoveFromDictionary (dictionary) keys
SCRIPTING
Get dictionary from
inputinfo
VARIABLES
Set variable
removedict
to
Dictionary
COMMENT
split by New Lines
includes the name of the function too, so we have to get the 3rd instead of the second argument

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 17 days ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

104 more actions