• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: plain text from clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plain text from clipboard


  • Subject: Re: plain text from clipboard
  • From: Richard 23 <email@hidden>
  • Date: Thu, 2 Nov 2000 00:26:28 -0800

> I know that getting the text data and the styles data of the clipboard
>was discussed here recently, but I can't find it in my archives. Can anyone
>refresh my memory?

> I want to get just plain text from styled text on the clipboard.

>Paul Skinner
>Ron Chapple Studios

Well I missed it, but here's what I use:

---------->

set theStr to the clipboard
set {theText, theStyl} to {<<class ktxt>>, <<class ksty>>} of (theStr as
record)
set theText to text of (theStr as record)

<----------

NOTE: the double angly brackets are chevrons (option-\ and shift-option-\)

Here's a shameless plug for Convert Script" which handles such email
conversions
for you right in your email client with the assistance of OSA Menu....

My script is on page 3 at http://homepage.mac.com/richard23/

Richard 23:
Network 242


  • Prev by Date: Re: Interrupting a script with an open dialog
  • Next by Date: Re: FMP question
  • Previous by thread: Re: Interrupting a script with an open dialog
  • Next by thread: List Header suggestion
  • Index(es):
    • Date
    • Thread