Login About Gallery
INTEGRITY
COMMENT
INTEGRITY • ™️𝘽𝙪𝙨𝙩𝙡. 𝖲ʜᴏʀᴛᴄ⁠ᴜᴛs Operates compatible shortcuts for data integrity, and to measure your results from automation. —— MIT License 𝐈𝐍𝐓𝐄𝐆𝐑𝐈𝐓𝐘 Framework Copyright © 2021 Scott Wright Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. —— {"name":"INTEGRITY","auuid":"90B9ED1A-1330-44A5-8B39-4E53A68A7632","version":"3.1"}
DATE
Current Date
COMMENT
Setting Default. Option ————————————————— - debug : False ( True ) - wait : nowait (↑45 secs ) - mode : run ( notify ) - key : primary ( alternate )
DICTIONARY
<inline variable>
False
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
COMMENT
▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ 🚫 No changes below 🚫 Get Input for target shortcut. ——>
VARIABLES
Get
Shortcut Input
SCRIPTING
Count
Items
in
Shortcut Input
SCRIPTING
If
Count
is greater than
1
SCRIPTING
Get
Items in Range
2
to
End Index
from
Shortcut Input
Otherwise
NOTHING
Nothing
End If
VARIABLES
Add
If Result
to
Shortcut Input
COMMENT
<—— Input for Target shortcut ▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ ▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ initialize Integrity ——>
TEXT
INTEGRITY
DOCUMENTS
Create Folder
Service
iCloud Drive
Path
/Shortcuts/
INTEGRITY
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
15 items
<inline variable>
<inline variable>
<inline variable>
3 items
<inline variable>
2 items
SCRIPTING
Get dictionary from
shortcut
COMMENT
If the shortcut input is the Integrity framework command “identify,” exit with the initializing shortcut dictionary.
VARIABLES
Get
Shortcut Input
SCRIPTING
Get
First Item
from
Shortcut Input
SCRIPTING
If
First Input
is
identify
SCRIPTING
Exit shortcut with
Shortcut
End If
COMMENT
Check the first item in the shortcut input stack for a target shortcut. If the item is a dictionary, check for a value at key “input” and assign it to the target shortcut’s “Shortcut Input” variable. Then check for a value at key “name”. If no dictionary is found, but there is valid text, assume it may be the target shortcut’s name.
SCRIPTING
Get dictionary from
First Input
SCRIPTING
If
Dictionary
has any value
SCRIPTING
If
input
has any value
SCRIPTING
Get
Value
for
input
in
Dictionary
VARIABLES
Set variable
Shortcut Input
to
Dictionary Value
End If
SCRIPTING
Get
Value
for
name
in
Dictionary
Otherwise
TEXT
SCRIPTING
If
Text
is not
##
VARIABLES
Otherwise
NOTHING
Nothing
End If
End If
VARIABLES
Set variable
Target
to
Target
COMMENT
<—— initialize Integrity ▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ If the variable “Target” has a text value, search the device shortcuts library for a shortcut with that name. Otherwise, present a menu of available shortcuts.
SHORTCUTS
Get my shortcuts
SCRIPTING
If
Target
has any value
FILES
Filter
My Shortcuts
where
Name
is
Target
Sort by
None
Limit
Get 1 File
Otherwise
SHORTCUTS
Get my shortcuts
FILES
Filter
My Shortcuts
where
All the following are true
Name
is not
Name
does not contain
.shortcut
Sort by
None
Limit
Get 99 Files
SCRIPTING
Choose from
Files
Select Multiple
End If
SCRIPTING
If
Target
has any value
Error Loading Action
Error Loading Action
DOCUMENTS
Create Folder
Service
iCloud Drive
Path
/Shortcuts/
Name
NOTHING
Nothing
COMMENT
🟢 🟢 🟢🟢 🟢🟢 🟢🟢🟢 🟢🟢🟢 🟢🟢 🟢🟢 🟢 🟢
DATE
Current Date
SHORTCUTS
Run
Name
Input
Shortcut Input
Show While Running
DATE
Current Date
COMMENT
🔴 🔴 🔴🔴 🔴🔴 🔴🔴🔴 🔴🔴🔴 🔴🔴 🔴🔴 🔴 🔴
NOTHING
Nothing
COMMENT
<—— Run desired Shortcut ▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ ▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ Verify and save results ——>
CALENDAR
Get time between
start
and
end
in
Seconds
CALENDAR
Format
start
Options Under Construction
CALENDAR
Format
end
Options Under Construction
CALENDAR
Format
Current Date
Options Under Construction
DOCUMENTS
Make
.zip
archive from
Shortcut Result
Archive Name
SCRIPTING
Set name of
Archive
to
Now
_
Name
.zip
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
Overwrite If File Exists
SCRIPTING
Mode
Saved File
with base64
SHORTCUTS
Run
File Provider
Input
Name
Show While Running
SCRIPTING
Get
Value
for
client.cuuid
in
Profile
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
False
SCRIPTING
Set
tracker
to
Dictionary
in
Dictionary
SCRIPTING
Set name of
Payload
to
Now
_
Name
.json
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
Overwrite If File Exists
VARIABLES
Set variable
Payload
to
Payload
COMMENT
<—— Verify and save results ▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ ▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ Load settings with current API ——>
SCRIPTING
Get
Value
for
debug
in
Switches
VARIABLES
DICTIONARY
<inline variable>
4 items
URL
https://raw.githubusercontent.com/ShortcutPros/library/main/settings.json
SCRIPTING
Get file of type
public.json
from
URL
SCRIPTING
If
Remote Dictionary
has any value
SCRIPTING
If
Debug
is
<value>
SCRIPTING
Get dictionary from
settings
Otherwise
Under Construction
End If
Otherwise
SCRIPTING
Get dictionary from
settings
End If
VARIABLES
Set variable
Settings
to
Settings
COMMENT
<—— Load settings file with current API ▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ ▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️▪️▫️ Place HTTP POST API call——>
SCRIPTING
Get
Value
for
api.
Settings
in
Settings
SCRIPTING
Get
Value
for
action.
Settings
in
Settings

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 8 days ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

21 more actions