Re: Font, size, and color
Re: Font, size, and color
- Subject: Re: Font, size, and color
- From: Emmanuel <email@hidden>
- Date: Wed, 14 Jan 2004 07:26:13 +0100
At 7:52 PM -0500 13/01/04, Graff wrote:
>
I've been trying to get the font, size of the font, and color of text in Script Editor.app. I have no problem getting the text of a document, and I can even break the text down into "attribute runs" but I've failed every single time I've tried to get the properties of an attribute run. Here's an example that doesn't work:
>
------------
>
tell application "Script Editor"
>
set documentList to every document whose name is "foo.scpt"
>
set theText to text of item 1 in documentList
>
set thisRun to attribute run 1 of theText
>
>
set theSize to size of thisRun
>
set theFont to font of (thisRun as attribute run)
>
set theColor to color of character 1 of thisRun
>
end tell
>
------------
>
>
Anyone have any idea on how to do this?
Err... what about using another editor, more modern, including a GUI editor and yet free?
Emmanuel
_______________________________________________
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.