Adium
Dock Icons Emoticons Contact List Styles Message Styles Sound Sets AppleScripts Status Icons Service Icons Menu Bar Icons Plugins Miscellaneous All
TwitterStatus

TwitterStatus

Submitted By Hadrien Lanneau (hadrien)

Description

TwitterStatus display your last twit on Adium exactly like TwitterAdium. The difference is the main script is wrote in very light PHP in place of ruby and need very less ressources each time it's executed.

Type %_Twitter everywhere you want to display your twits : profile, chat, etc

The first time you'll use it, a file ~/.twitter.ini will be created. You'll have to edit with your favorite text editor (vi is strong) to specify your username and the interval of time the twit have to be refreshed.

That's all.

Images

Comments

You can reply to individual comments by clicking the "Reply" link next to each.

# by Ozy on 05/01/10 at 23:23:30

Why not remove the ".xml" from the HTTP request? That way twitter requests aren't rate limited.

Additionally, do you plan to toss in some cleaner code for the user's home directory for the creation of the .ini file?

# by Ozy on 05/02/10 at 11:02:11

Your code checks for '@' is in the string, rather than if it is the first character. I'd suggest switching over to strncmp to correctly allow for tweets with '@' in it.

# by Ozy on 05/03/10 at 00:56:51

Modified and updated the script. This version correctly handles @replies (I think - tested only by preventing them), correctly allows RTs to be posted, does not cut off retweets when they are posted by API (which results in them being truncated).

I've modified much of the code for reading clarity and added comments.

http://pastebin.com/h0hDfeXX

# by hadrien on 05/04/10 at 21:13:38

I'll take a look at your script when i'll get time. Thanks for your contribution :)

PS : to have the best performance, the entire code would be in applescript. If you know AS, i encourage you to rewrite the xtra with it. I don't know AS :(

Post a New Comment

You must be logged in to post comments.

Install | Download
5.62kb (1020 downloads)

12345
4.30 / 3 votes
Current Version: 1.0
Last Updated: 04/08/09
Credits:
Hadrien Lanneau
http://alt-i.fr
http://hadrien.eu