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: KOENIG Yvan <email@hidden>
- Date: Mon, 9 Mar 2009 09:56:48 +0100
Le 9 mars 2009 à 09:14:53, Jan Erik Moström a écrit :
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?
(the dictionaries explicitly say "An entry's rich text contents")
If you run
get the clipboard as record
after copying to the clipboard the contents of a rtfd file (one with
text and pictures), the log report states:
tell current application
the clipboard as record
{Unicode text:"blablabla
", styled Clipboard text:«data
styl000100000000000C00090015008B000C000000000000», string:"blablabla
", uniform styles:«data
ustl0000000200000090000000000000001400000020000000010000000B000000000000
00010000006C000000040000000000000000000001020000000100000000000001050000
002C6E616D64000000240000000100000004000000010000000000000000000000094865
6C7665746963610000000000010600000004000C00000000010700000006000000000000
0000», «class ut16»:"blablabla
", «class utf8»:"blablabla
",
«class RTF »:«data RTF
7B5C727466315C6D61635C616E736963706731303030305C636F636F617274663832345C
636F636F617375627274663438300A7B5C666F6E7474626C5C66305C6673776973735C66
6368617273657437372048656C7665746963613B7D0A7B5C636F6C6F7274626C3B5C7265
643235355C677265656E3235355C626C75653235353B7D0A5C706172645C74783536365C
7478313133335C7478313730305C7478323236375C7478323833345C7478333430315C74
78333936385C7478343533355C7478353130325C7478353636395C7478363233365C7478
363830335C716C5C716E61747572616C5C7061726469726E61747572616C0A0A5C66305C
66733234205C63663020626C61626C61626C615C0A5C0A7D»,
«class rtfd»:«data
rtfd727466640000000003000000030000000B000000496D61676520332E6A7067070000
005458542E727466010000002EB75F0B00CB0100004E0000000100000000000080F24F0B
00B50F000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000
I don't know how you would be able to pass the RTF and rtfd components.
Yvan KOENIG (from FRANCE lundi 9 mars 2009 09:56:23) _______________________________________________
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