• 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: send text returned to clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: send text returned to clipboard


  • Subject: Re: send text returned to clipboard
  • From: Christopher Biagini <email@hidden>
  • Date: Tue, 18 Jan 2005 13:01:16 -0500

On Jan 18, 2005, at 11:04 AM, Robert Ly wrote:

I would like copy the value of this variable to the clipboard
then paste it into a new TextEdit document

In addition to Yvan Koenig's suggestion, if you want to make a *new* document, you can try this:


	set theVar to "I am a poor lonesome cowboy."

	tell application "TextEdit"
		make new document at end of documents with properties {text:theVar}
	end tell

You only need the clipboard if you want to actually paste text into an existing document.

--Chris Biagini

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >send text returned to clipboard (From: Robert Ly <email@hidden>)
 >Re: send text returned to clipboard (From: yvan-koenig <email@hidden>)

  • Prev by Date: ensuring that "run script" runs the script in OS X ?
  • Next by Date: Re: Call Objective-C methods from any script
  • Previous by thread: Re: send text returned to clipboard
  • Next by thread: ensuring that "run script" runs the script in OS X ?
  • Index(es):
    • Date
    • Thread