• 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: Rich text - what is the best way to handle rich text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Rich text - what is the best way to handle rich text (From: Jan Erik Moström <email@hidden>)

  • Prev by Date: Re: newbie question about timers...
  • Next by Date: copy
  • Previous by thread: Re: Rich text - what is the best way to handle rich text
  • Next by thread: copy
  • Index(es):
    • Date
    • Thread