• 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: select text of document 1 in TextEdit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: select text of document 1 in TextEdit?


  • Subject: Re: select text of document 1 in TextEdit?
  • From: Don W Strickland <email@hidden>
  • Date: Thu, 3 Aug 2006 16:34:41 -0500

Daniel,

Excellent ... that is all I needed. I wanted to be able to do that in TextEdit because I wanted to be able to write a version of my script that doesn't require a third party application.

Now it works with TextEdit!

Now I'm inspired to rewrite my script manipulating the Clipboard directly rather than paste, change, copy back to the Clipboard.

Thank you,

Don


On Aug 3, 2006, at 15:28, Daniel Jalkut wrote:
Don - do you need to preserve style? You can manipulate the clipboard directly:

tell application "TextEdit"
	set the clipboard to (text of document 1 as string)
end tell


On Aug 3, 2006, at 4:19 PM, Don W Strickland wrote:
tell application "BBEdit"
	activate
	-- this works in BBEdit but NOT in TextEdit
	select text of document 1
	copy the selection
end tell

Can you tell me how to do that same thing in TextEdit? I just want to copy the contents of a TextEdit document to the clipboard in an AppleScript.

Thanks,

Don
Payroll Systems Analystweater.com


_______________________________________________ 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
  • Follow-Ups:
    • Re: select text of document 1 in TextEdit?
      • From: Daniel Jalkut <email@hidden>
References: 
 >select text of document 1 in TextEdit? (From: Don W Strickland <email@hidden>)
 >Re: select text of document 1 in TextEdit? (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: select text of document 1 in TextEdit?
  • Next by Date: Re: select text of document 1 in TextEdit?
  • Previous by thread: Re: select text of document 1 in TextEdit?
  • Next by thread: Re: select text of document 1 in TextEdit?
  • Index(es):
    • Date
    • Thread