
mr-b
31 discussion posts
Hi
I've read and re-read the Help guide on Triggers & Macros but there doesn't seem to be any examples on how to create something to do this function.
I'm sure it's easy and simple for folks that know already but for a new user it's daunting and not at all clear.
What I'd like to do do is to optionally remove formatting from some text. A lot of PDF docs I copy from seem to have hard-coded carriage returns and so screw up when pasting into another doc. The Trigger 'scrub' function sounds like it would do the job.
However the match conditions all appear to be automatic based on content or some other stuff I don't understand, when I just want the option for the function to be done manually via a right click option or similar.
Then I looked at Macros, but when I tried to Add one, it mandates using a programming language so that's no good for me.
Any ideas?
Nov 27, 2022 (modified Nov 27, 2022)
•
#1

mr-b
31 discussion posts
Great - tx for that.
I tried it on some text I'd copied to the clipboard and a notification duly popped up about the macro running.
But the text pasted still contains the line breaks. I note the Clipboard Manager doesn't add a new entry which I was expecting.
What am I missing?

mr-b
31 discussion posts
Try the first few paras of this doc:
https://www.citizensadvice.org.uk/Global/CitizensAdvice/Housing%20Publications/Dispatches%20from%20the%20front%20lines%20of%20the%20housing%20crisis%20(2%20Exeter).pdf
The macro strips the text formatting but seemingly not the line breaks.
Also I note that the Clipboard Manager doesn't seem to indicate the different text clip types e.g. HTML, RTF etc. and plain text, so one can't easily check if formatting has been stripped, without actually pasting it somewhere to test.
Is there a way to show this?

mr-b
31 discussion posts
Hi - any update on this?
Using an online tool it seems that stripping line breaks and replacing it with a space helps when copying text from a PDF.
Also is there a way to have the "Scrub" from Triggers as a macro?

mr-b
31 discussion posts
That's great - it works fine now. Thanks!