Manupulate Clipboard


I have an app and I want if I press Command + C in that app and then the clipboard content starts with "AA" and is 10 characters long, the clipboard content will be truncated by "AA" and only the remaining 8 characters remained on the clipboard (example "AA88884107" becomes example "88884107").

How can I achieve this?

Thanks in advance!

I would do it like the macro below.
It is in a Group which is only active in BBEdit. You need to change this to the relevant program.
I assume in this macro that is is always 8 digits after AA.

Remove AA from clipbard in BBEdit Macro (v10.1.1)

Remove AA from clipbard in BBEdit.kmmacros (3.0 KB)

1 Like

Hi @JimmyHartington ,

this is exactly, what i'm searching for.

Thank you :+1:t3:

1 Like