Re: Scripting text in Entourage
Re: Scripting text in Entourage
- Subject: Re: Scripting text in Entourage
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 16 Feb 2003 13:41:50 -0800
On 2/16/03 10:27 AM, "Christopher Coulon" <email@hidden> wrote:
>
Can anyone help me with a (hopefully) simple script to change the selected
>
text in a message to a specific font and style?
You can't. Entourage does not implement the Text Suite. You're stuck with
what you've got set. None of the HTML text controls is scriptable. It may be
that the new GUI scripting will allow some degree of manipulation.
>
Also, how do I change the
>
signature to another signature in my list?
That's easy enough.
>
>
My pathetic attempt was:
>
>
tell application "Microsoft Entourage"
>
activate
>
set selection to " " as styled text
>
set signature to "informal"
>
end tell
>
>
The 3set signature ... 3 line gives the error: Can9t set <<class cSig>> to
>
3informal2. Access not allowed.
You've tried to set a signature object (class) to a string. Not possible.
presumably you want to set the signature of the new message window (draft
window) to a signature whose name is "informal"?
tell application "Microsoft Entourage"
if class of front window is draft window then
set selection to " "
set signature type of window 1 to other
set other signature choice of window 1 to signature "informal"
end if
end tell
>
>
Without that line the selected text in my message is replaced by the blank,
>
but the font and style and size remain unchanged.
>
>
Thanks you for any help on this.
--
Paul Berkowitz
_______________________________________________
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.