|
|
An AppleScript to convert clipboard contents to plain text
I'd like to alter this script to make everything plain text except bold and italics which would remain bold and italics. Everything else would be dropped (color, font, indents, etc.).
Any idea how I'd do this?
i got this working, here's the script:
this requires this script to run.
here's the applescrit.net forum page where people helped me figure this out: Link
i got this working, here's the script:
This is excellent! Does what it says on the tin! Well, almost.
Although you get bolds etc, it isn't plain text - the font is Geneva. For some reason Applescript assigns what you might expect to be a plain text to a Geneva font! See my previous post on this. And the original poster's comments.
It's to do with the seed value "x" on the line: -
Unfortunately, Applescript assigns this "x" a Geneva font right from the start. Therefore, Gevena becomes the default font for the clipboard. I tried the following as a replacement, based on what the original poster said: -
but now the handler throws up an error claiming the clipboard has non-styled text. Sounds like a bit of work on the handler might straighten this out, and then you would have "real" plain text with style info, but not font.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.16 seconds |
|