Re: SOLVED: Getting Plain-Text onto the Clipboard
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