Re: copying styled text from TextEdit (NOT Tex-Edit Plus)
Re: copying styled text from TextEdit (NOT Tex-Edit Plus)
- Subject: Re: copying styled text from TextEdit (NOT Tex-Edit Plus)
- From: Camilla <email@hidden>
- Date: Wed, 20 Feb 2002 11:22:18 +0000
This from ehsan saffari - dated 20/2/02 08:56 am:
>
tell app "TE+"
>
activate <-- required for clipboard operations
>
set the clipboard to contents of document 1 as styled text
>
end tell
>
>
> I also tried to put the text into a variable, but that didn't work
>
> either.
>
>
set MooseJaw to contents of document 1 as styled text
Thank you for replying, Eshan. I think you must have misread my post. It is
TextEdit, the OS X replacement for SimpleText, that I want to copy the text
from, and NOT Tex-Edit Plus.
So my original question remains. Why is the text that I copy from TextEdit
_not_ styled, when the same line of script will happily copy styled text to
the clipboard (or to a variable) from AppleWorks 6 or TexEdit Plus - and is
there some way to write the line so that it can do this. I also mentioned
that the carriage returns in the text copied from TextEdit were replaced by
unix characters. I was just guessing, really - but using the Unix>Mac
conversion in the Tex-Edit Plus quick modify options makes them go away.
Again, thank you for any help. I probably should have said in my earlier
message that I am working on OS X, but I suppose that is obvious now.
Camilla
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.