Re: changing text format in ichat
Re: changing text format in ichat
- Subject: Re: changing text format in ichat
- From: KOENIG Yvan <email@hidden>
- Date: Sun, 25 Mar 2012 12:01:59 +0200
Le 25 mars 2012 à 11:32, Yuma Antoine Decaux a écrit :
> Hi all,
>
> I've been able to do quite some stuff with persistence on the new messages beta application. All it's commands are apparently taken from ichat, and i tried gui and non gui scripting, all works really cool and much faster than some other methods i was trying for my final script.
>
> Past the functional bit, i wanted to ask if anyone knew a good way of formatting strings that i collect from various areas of my script. I saw properties for text such as color, size and font type (couldn't find typeface like bold italic, etc but...). However in the dictionary for ichat, these properties are in the text suite, linked to commands in the ichat suite. I tried some property calling outside of ichat,thinking it would work but A.S doesn't recognize them.
>
> Do i have to localise all property calls for the formatting to behave as it should?
>
> Say--global properties
> Set thestring to item x of document "z"
> Set thestring to thestring with properties {color:red, size:13}
>
> Tell application "Ichat"
> Send thescript to buddy ID blablah
> End tell
>
> Just making things short, this is pretty much the hierarchy of the variable. But it doesn't work.
>
> Anyone know or has done this before?
>
> The idea is to blow out a figure and give it a specific color so that each recipient can see very quickly on their phones when the alert is sounded.
>
>
> Any help greatly appreciated, just a link tah speaks about text formatting in ichat with A.S will do :)
>
Hello
Font name, color, size must be defined in the tell application "iChat" block (or in a tell application "TextEdit" one)
As far as I know, to define other attributes, we must rely upon GUIscripting.
Yvan KOENIG (VALLAURIS, France) dimanche 25 mars 2012 12:01:52
_______________________________________________
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