Re: Rich text - what is the best way to handle rich text
Re: Rich text - what is the best way to handle rich text
- Subject: Re: Rich text - what is the best way to handle rich text
- From: Philip Aker <email@hidden>
- Date: Mon, 9 Mar 2009 18:12:08 -0700
On 2009-03-09, at 01:14:53, Jan Erik Moström wrote: I've never been able to figure out how to handle rich text, looking at various dictionaries it looks like some apps can return rich text but as soon as I assign this to a variable in AS it's plain text only (as I've understood it, AS is only able to handle plain text).
What I would like to do is being able to copy rich text (including pictures) from one place and send it to another, is this possible to do at all?
I use System Events. Here's one way to paste some rich text into TextEdit:
tell application "Safari" to activate tell application "System Events" to tell application process "Safari" keystroke "a" using {command down} keystroke "c" using {command down} end tell tell application "TextEdit" to activate tell application "System Events" to tell application process "TextEdit" keystroke "v" using {command down} end tell
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