Page 1 of 1

HTML in Adium AppleScript

Posted: Mon Aug 07, 2006 8:24 pm
by SomeGuy
I was wondering if there was a way to insert HTML in an AppleScript for Adium. I know that this can be done in a regular script, but to incorporate it for Adium I run into a few problems.

1. I cannot make a quote generator include a hyperlink, since ScriptEditor finds two sets of quotes, "<insert stuff here>"<a href="http://example.com">Clicky.</a>" The set of quotes inside another set of quotes confuses ScriptEditor.

2. If I try putting a simple http://www.example.com in AppleScript without it being a hyperlink, the :/ is converted to an Emoticon/Smiley. Apparently if I disable that one smiley in my preferences, it still shows up for other people.

Is there somthing that you must do for HTML to work in quote generators, or is there another way to format the script besides:

Code: Select all

on substitute()
	set whatever_list to some item of {"<insert quote 1 here>", "<insert quote 2 here>", "<insert quote 3 here>"}
	return whatever_list & " -Somebody's name"
end substitute

Posted: Mon Aug 07, 2006 8:56 pm
by zaudragon
My Raw HTML script does this by:

Code: Select all

return "<HTML><A HREF=\"http://...\">Link</A></HTML>"

Posted: Mon Aug 07, 2006 10:06 pm
by evands
(which is to say that if you put <HTML> and </HTML> around your return text, it'll treat it as HTML)

Posted: Mon Aug 07, 2006 11:29 pm
by SomeGuy
Ah thank you very much. I forgot about the \ and / around the link. Now I can proceed to make random scripts with HTML in them. :)