• 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: Philip Aker <email@hidden>
  • Date: Tue, 11 Aug 2009 16:26:36 -0700

On 2009-08-11, at 14:20:48, 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.

Yes, but if I put an umlaut in there…

set stxt to "Hallo güys," & return & return
do shell script "echo " & stxt & " | pbcopy"
the clipboard


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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

References: 
 >SOLVED: Getting Plain-Text onto the Clipboard (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Detecting if Time Machine is busy backing up
  • Next by Date: Mount Point to Alias
  • Previous by thread: SOLVED: Getting Plain-Text onto the Clipboard
  • Next by thread: Re: SOLVED: Getting Plain-Text onto the Clipboard
  • Index(es):
    • Date
    • Thread