HTML in Adium AppleScript

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
SomeGuy
Harmless
Posts: 2
Joined: Mon Aug 07, 2006 7:54 pm
Location: Plotting.
Contact:

HTML in Adium AppleScript

Post 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
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

My Raw HTML script does this by:

Code: Select all

return "<HTML><A HREF=\"http://...\">Link</A></HTML>"
Blog | X(tras)
Communists code without classes.
User avatar
evands
Cocoaforge Admin
Posts: 3152
Joined: Thu Dec 02, 2004 10:55 pm
Location: Decatur, GA
Contact:

Post by evands »

(which is to say that if you put <HTML> and </HTML> around your return text, it'll treat it as HTML)
The duck still burns.
--
My company: Saltatory Software. Check it out :)
SomeGuy
Harmless
Posts: 2
Joined: Mon Aug 07, 2006 7:54 pm
Location: Plotting.
Contact:

Post 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. :)
Post Reply