I need to write a script that accomplishes the task of removing the carriage returns from text in PDF documents when I copy them over to another app.
I have seen a couple of scripts that are “App Specific” that allow you to batch remove them. I was wondering if there was any way for applescript to do this without having to tell the application to do it, since I occasionally have apps that are not scriptable. It’s also a wasted step having to highlight and change it after the copy.
I was wondering specifically, if applescript can handle a text manipulation from Preview to the clipboard, such that the carriage returns are removed before the text is ever pasted. Or perhaps a manipulation from the clipboard to the page.
Can something like that be done? Am I barking up the wrong tree asking AppleScript to do it?