That's a general AppleScript problem with rich text. AppleScript does  
not have a primitive rich text type. Rich text is declared as type  
text, so whenever you evaluated it (e.g. by assigning it to a  
variable) it is converted to just text. So you can only use it as  
rich text as a reference. Either use it directly in a command (such  
as saving to file or putting on a clipboard or getting rich text  
properties) that has a rich text parameter, or use 'a reference to'.

Christiaan

On 5 Jan 2008, at 2:49 AM, James Harrison wrote:

> In 1.3.13, the Applescript command "templated rich text" now yields
> the correct text string, but it's not clear whether it includes any
> text style information (in Leopard). I don't have a complete handle on
> the situation, since it's easy to strip style information from strings
> in Applescript and Applescript 2.0 in Leopard handles strings a bit
> differently from previous versions. However, I can copy styled text
> from one document in TextEdit directly to the clipboard and then
> insert it into another document with styles preserved. When I set the
> clipboard to the output of templated rich text in BibDesk using the
> Abbrv export template (which should italicize journal names) I can
> insert the correct text into the TextEdit document from the clipboard,
> but the styles are absent. Is there a way to confirm that the current
> output of "templated rich text" is what's intended?
>
> By the way, the "About" box still reads 1.3.12 in the nightlies. Is it
> supposed to retain the old number until the official release?
>
> Jim Harrison
> UVa



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to