Re: select text of document 1 in TextEdit?
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