Login About Gallery
Clip
Accepts
WFAppContentItem, App Store Apps, Contacts, Dates, Email Addresses, iTunes Products, Phone Numbers, Safari Web Pages, Text, URLs, Locations, Map Links and Articles
SHARING
Copy
Shortcut Input
to clipboard
Local Only
Expire At
Today at 3 pm
COMMENT
DISCLAIMER: This shortcut does save any information that you allow it to see in a text file on iCloud. This shortcut does not save everything you copy; it does save the very last thing you copied if you run the shortcut. BE CAREFUL WITH WHAT YOU COPY BEFORE USING THIS SHORTCUT. If you copied something that you do not want saved to a text file, then PLEASE run the Clip History shortcut and select “Clear History”. I’m not sure about the privacy implications of saving your clipboard to a text file, but you have been warned. SETUP: 1) Run this shortcut first otherwise Clip History will result in an error. 2) This shortcut requires iOS 17. 3) Adding both shortcuts to your homescreen or control center (iOS 18) is suggested for better utilization. 4) If you are using this shortcut on iPadOS with an external keyboard or MacOS, I’d reccommend adding this as cmd+shift+C, or another keyboard shortcut. Hopefully you find this as useful as I do, - Brandon
TEXT
Text
SCRIPTING
If
Text
is not
42
SCRIPTING
Show alert
You have not accepted the Terms and Conditions
Title
You have not accepted the Terms and Conditions
Show Cancel Button
SCRIPTING
Exit shortcut with
Result
End If
SCRIPTING
If
Clipboard
does not have any value
SCRIPTING
Ask
Nothing Copied to Clipboard. Add Something?
Input Type
Text
Default Answer
Text
SHARING
Copy
Ask for Input
to clipboard
Local Only
Expire At
Today at 3 pm
End If
file.getfoldercontents Under Construction
SCRIPTING
If
Get Contents of Folder
does not contain
Clip History
DOCUMENTS
Create Folder
Service
iCloud Drive
Path
/Shortcuts/Clip History
End If
file.getfoldercontents Under Construction
SCRIPTING
If
Get Contents of Folder
does not contain
Clip History
DOCUMENTS
Prepend
Clipboard
Service
iCloud Drive
File Path
Clip History.txt
Make New Line
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Clip History.txt
Overwrite If File Exists
SCRIPTING
Exit shortcut with
Result
End If
COMMENT
Above ensures the file exists. Below starts the magic.
file Under Construction
TEXT
Split
File
by
New Lines
SCRIPTING
Get
First Item
from
OG split text
SCRIPTING
If
Clipboard
is
First Item
SCRIPTING
Exit shortcut with
Result
End If
COMMENT
The number below (default = 10) is a history limit number. You can change this how you wish. The history limit automatically clears your Clip History if it gets too large.
NUMBER
10
VARIABLES
Set variable
Limit
to
Number
TEXT
Split
Clipboard
by
New Lines
SCRIPTING
Count
Lines
in
Split Clipboard
SCRIPTING
If
Lines
is greater than
10
SCRIPTING
Ask
Your clipping is larger than the history limit. Raise the limit?
Input Type
Number
Default Answer
Lines
SCRIPTING
If
Ask for Input
has any value
VARIABLES
Set variable
Limit
to
Ask for Input
End If
End If
MATHS
Limit
-
1
Options Under Construction
COMMENT
The repeat action below is the MVP of this shortcut. The repeat is necessary to filter out empty lines in the clipping.
SCRIPTING
If
Lines
is
1
file Under Construction
SCRIPTING
Count
Lines
in
File
SCRIPTING
If
Lines
is greater than or equal to
Limit
TEXT
Split
File
by
New Lines
SCRIPTING
Get
Items in Range
1
to
Limit - 1
from
Loop Split
TEXT
Combine
Range
with
New Lines
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Clip History.txt
Overwrite If File Exists
End If
DOCUMENTS
Prepend
Clipboard
Service
iCloud Drive
File Path
Clip History.txt
Make New Line
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Clip History.txt
Overwrite If File Exists
Otherwise
COMMENT
The repeat action below is to reduce shortcut runtime for long clippings. And this keeps the order while filtering out empty lines.
SCRIPTING
Repeat with each item in
Split Clipboard
SCRIPTING
If
Repeat Item
is not
<value>
DOCUMENTS
Append
Repeat Item
Service
iCloud Drive
File Path
Temp File.txt
Make New Line
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Temp File.txt
Overwrite If File Exists
End If
End Repeat
file Under Construction
SCRIPTING
Count
Lines
in
Temp File
SCRIPTING
If
Temp Count
is less than
Limit
MATHS
Limit
-
Temp Count
Options Under Construction
file Under Construction
SCRIPTING
Count
Lines
in
File
SCRIPTING
If
Count
is greater than or equal to
Calculation Result
TEXT
Split
File
by
New Lines
SCRIPTING
Get
Items in Range
1
to
Calculation Result
from
Split Text
TEXT
Combine
Item from List
with
New Lines
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Clip History.txt
Overwrite If File Exists
End If
DOCUMENTS
Get text from
Temp File
DOCUMENTS
Prepend
Text
Service
iCloud Drive
File Path
Clip History.txt
Make New Line
Otherwise
DOCUMENTS
Get text from
Temp File
TEXT
Split
Text
by
New Lines
SCRIPTING
Count
Items
in
Split Text
SCRIPTING
If
Count
is less than
Limit
VARIABLES
Set variable
Limit
to
Count
End If
SCRIPTING
Get
Items in Range
1
to
Limit
from
Split Text
TEXT
Combine
Item from List
with
New Lines
End If
DOCUMENTS
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Clip History.txt
Overwrite If File Exists
TEXT
Text
DOCUMENTS
Save
Text
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/Temp File.txt
Overwrite If File Exists
End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0