Login About Gallery
Cancel Culture
COMMENT
‎Cancel Culture: a proof-of-concept shortcut for detecting if someone has pressed "cancel" on an alert on a previous run. Of course, there are many different ways to approach the specifics of the implementation, but this should give you an idea of the structure. Made by @FifiTheBulldog
TEXT
‎Cancel.json
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
SCRIPTING
‎If ‎File ‎does not have any value
DICTIONARY
DOCUMENTS
‎Save ‎Dictionary
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'Text', 'glyph': '', 'UUID': '389A5BA6-153E-4886-9ED0-C2FDBB625BC8'}]
Overwrite If File Exists
SCRIPTING
‎End If
SCRIPTING
‎Get ‎Value ‎for ‎HasApproved ‎in ‎If Result
SCRIPTING
‎If ‎Dictionary Value ‎is ‎<value>
SCRIPTING
‎Show alert ‎You already pressed "OK," you're all set!
Title
‎You already pressed "OK," you're all set!
Show Cancel Button
DOCUMENTS
‎Delete ‎File
Confirm Before Deleting
SCRIPTING
‎Otherwise
SCRIPTING
‎Get ‎Value ‎for ‎HasAttempted ‎in ‎If Result
SCRIPTING
‎If ‎Dictionary Value ‎is ‎<value>
SCRIPTING
‎Show ‎Accept your fate and press OK this time.
SAFARI
‎Show web page at ‎https://www.youtube.com/watch?v=dQw4w9WgXcQ
Enter Safari Reader
SCRIPTING
‎Show alert ‎Now that that's out of the way, I ask again: Do you want to continue?
Title
‎Now that that's out of the way, I ask again: Do you want to continue?
Show Cancel Button
SCRIPTING
‎Set ‎HasApproved ‎to ‎1 ‎in ‎Dictionary
DOCUMENTS
‎Save ‎Dictionary
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'Text', 'glyph': '', 'UUID': '389A5BA6-153E-4886-9ED0-C2FDBB625BC8'}]
Overwrite If File Exists
SCRIPTING
‎Otherwise
SCRIPTING
‎Set ‎HasAttempted ‎to ‎1 ‎in ‎Dictionary
DOCUMENTS
‎Save ‎Dictionary
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'Text', 'glyph': '', 'UUID': '389A5BA6-153E-4886-9ED0-C2FDBB625BC8'}]
Overwrite If File Exists
SCRIPTING
‎Show alert ‎Informational Message
Title
‎optional
Show Cancel Button
SCRIPTING
‎Set ‎HasApproved ‎to ‎1 ‎in ‎Dictionary
DOCUMENTS
‎Save ‎Dictionary
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'Text', 'glyph': '', 'UUID': '389A5BA6-153E-4886-9ED0-C2FDBB625BC8'}]
Overwrite If File Exists
SCRIPTING
‎End If
SCRIPTING
‎End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 8 months ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0