Enchanced copied text to paste in to an ASC reply so it looks more like the orginal.

Last modified: Jul 3, 2020 1:32 PM
2 6355 Last modified Jul 3, 2020 1:32 PM

This applescript converts clipboard input into a format suited for pasting into an ASC reply. Here is the pointer to the applescript.

https://pastebin.com/raw/LZziK6dZ



I observed that my copies into an ASC reply were not formatted the same as the source. I observed that copies from a web browser were formatted much better. After weeks past, I realized that I could make the paste data appear to come from a web browsers. By doing so, I have created better pasted data in an ASC Reply.


This applescript accepts the clipboard in either

-- plan text upon which the text is converted to HTML. Conversion is limited to inserting paragraph tags for blank lines and inserting links where http or https text appears. The page title is substituted for as the visible link.

-- HTML which text identified as containing HTML markup. I use a simple algorithm. Should my algorithm not be robust enough, you can add <title> </title> in your file.


to use:

1) copy command + c what data you want to convert

2) run this applascript by double clicking on the app.

3) paste command + v into an ASC reply


or

1) drop the input file onto this Applescript.

2) paste command + v into an ASC reply


Examples:

Use link title instead of raw link

Input text.


output ready to paste into your web browser. Links converted to clickable with titles.


Proper Paragraphing

Input text from web page rendered by Waterfox


result of copy, command + c and paste, command + v

copy, command + c then run my applescript then paste, command + v.

Notice, proper paragraphing and title substituted for raw link


went prior on July 3, 2020

https://pastebin.com/raw/51DcudYf

Robert

PS. Caveat emptor. Please consider this beta software. Please have a backup copy of all your data.


Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.