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
HasApproved
0
HasAttempted
0
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Text
Overwrite If File Exists
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
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
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Text
Overwrite If File Exists
Otherwise
SCRIPTING
Set
HasAttempted
to
1
in
Dictionary
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Text
Overwrite If File Exists
SCRIPTING
Show alert
Informational Message
Title
optional
Show Cancel Button
SCRIPTING
Set
HasApproved
to
1
in
Dictionary
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Text
Overwrite If File Exists
End If
End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0