• 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: SOLVED: Getting Plain-Text onto the Clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SOLVED: Getting Plain-Text onto the Clipboard


  • Subject: Re: SOLVED: Getting Plain-Text onto the Clipboard
  • From: Emmanuel LEVY <email@hidden>
  • Date: Wed, 12 Aug 2009 11:08:57 +0200

At first sight Smile's "set clipboard to" would do that, but I don't know if that solution applies in your context.

Emmanuel


On Aug 11, 2009, at 11:20 PM, Christopher Stone wrote:

Hey Folks,

About a month ago I was struggling with the problem of getting entirely styleless text onto the clipboard. I had tried using the little applet 'Plain Text' which was simply too slow, and I finally settled on using a QuicKeys function to do this.

Further research has unearthed a couple of shell commands: pbcopy & pbpaste

set salutationText to "Hey Guys," & return & return
do shell script "echo " & salutationText & "| pbcopy"

pbcopy does the job quite neatly with no necessary 3rd party interaction.


Chris

______________________________________________________________________


On Jul 06, 2009, at 07:26, Christopher Stone wrote:

Well. I've tried this every-which-way and can't get it to behave properly with Applescript, so what I've done is to use QuicKeys' 'Remove Styles' function on the clipboard. This works, and it's acceptably fast even on my old G4 PowerBook. It is not the solution I wanted.

If I remember correctly all text on the Mac is now Unicode, and I wonder if that's not part of the problem. It used to be possible to force plain text using a raw class. Similar to this:

set s to the clipboard
set s to «class ktxt» of (s as record)
set the clipboard to s

Is there any way to do something similar on Leopard?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: SOLVED: Getting Plain-Text onto the Clipboard
      • From: Christopher Stone <email@hidden>
References: 
 >SOLVED: Getting Plain-Text onto the Clipboard (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Mount Point to Alias
  • Next by Date: Re: Mount Point to Alias
  • Previous by thread: Re: SOLVED: Getting Plain-Text onto the Clipboard
  • Next by thread: Re: SOLVED: Getting Plain-Text onto the Clipboard
  • Index(es):
    • Date
    • Thread