Seeking help with an AppleScript intended to convert text in the clipboard. Let’s say the following formatted text is copied, somehow, to the clipboard:
Spengler, Egon. “Spores, molds and fungus.” Le journal du fromage bout à bout; Funkytown: 1234.
…I would like to take that string of baloney and paste it into a custom metadata field called “citation,” but when it pastes into there–I assume, as plain text–I’d like to retain the ability to convert that plain text back to its original formatting. So in other words, I presume the italicized part would be wedged between some code looking sort of like this
<i> and this
For this to really be useful though, a second AppleScript would then be required, I presume, to do the exact opposite; this one would facilitate the copy-and-paste of the plain-text contents in the metadata field, in such a way that the pasted text looks exactly like the formatted text, without the formatting codes showing.
…or maybe my logic or understanding of how this could work is a bit flawed, lol! Any guidance on this workflow/concept would be really appreciated. Thanks in advance!