Text color via Applescript?
31 maart 2005 - 11:47   
geplaatst door: Creator
Hallo, ik ben bezig een scriptje aan het maken in "mail", maar bepaalde tekst zou moeten een kleur krijgen

...
         
         tell the new_message
            set content to "Betreft: Advertentie
            
Advertentienummer: " & this_name & "            
            
            
Hallo,
...

hierboven zie je een stukje script, het variabele "this_name" zou in het rood moeten komen te staan. Ik heb het web al zitten afzoeken en in de standaardscripts gekeken van mail maar niks gevonden die me duidelijk maakte hoe het precies moet.

THX!

Text color via Applescript?
31 maart 2005 - 13:54    reactie #1
geplaatst door: MacFanGuy
Kijk is in /Bibliotheek/Scripts/Mail Scripts naar Crazy Message Text. Ik heb niet precies het antwoord voor je, maar misschien dat dit script je meer kan vertellen over kleuren en zo?
Huh? Wat is dat, een PixelFreak?
Text color via Applescript?
1 april 2005 - 10:24    reactie #2
geplaatst door: Creator
Dit script had ik ook al doorgenomen, maar het is niet zo duidelijk voor me.
Text color via Applescript?
1 april 2005 - 16:07    reactie #3
geplaatst door: Thijs Alkemade
Zo misschien?


set this_name to "1234"
set this_text to "Betreft: Advertentie

Advertentienummer: " & this_name & "


Hallo, "

tell application "Mail"
set this_message to make new outgoing message at end of outgoing messages with properties {content:this_text, visible:true}
repeat with i from 42 to 42 + (the length of this_name)
tell the content of this_message
set the color of character i to {65535, 0, 0}
end tell
end repeat
end tell

"There is no reason for any individual to have a computer in his home." --Ken Olson, 1977