Can you randomly shuffle your buddy icon?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
tpg
Harmless
Posts: 4
Joined: Wed Feb 09, 2005 5:32 pm

Can you randomly shuffle your buddy icon?

Post by tpg »

Can you randomly shuffle your buddy icon? For example, if I have 5 buddy icons in a folder and I want then to be my buddy icon but randomly with different conversations. Is this possible? If not can I put it in as a feature request?
User avatar
Tipo 61
Grandé
Posts: 910
Joined: Fri Dec 10, 2004 11:12 pm
Location: Boston, MA
Contact:

Post by Tipo 61 »

Someone might have, or be able to write, a script for this. It may be possible...
User avatar
xpander
Adium Team
Posts: 103
Joined: Thu Dec 02, 2004 2:41 pm
Location: Silver Creek, NY
Contact:

Post by xpander »

There is a script in the xtras site that sets your buddy icon to the cover art of the currently playing song in itunes, so I'm sure it could be modified to do what you want.
Life's not too short, you're just dead for so long.
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

I made this script and submitted it to Adium X(tras)
Blog | X(tras)
Communists code without classes.
Sirius
Latté
Posts: 55
Joined: Mon Jan 24, 2005 7:34 pm
Location: Lost in my own mind...

Post by Sirius »

I think tpg meant that he wanted different icons for different convosation windows, simutaneously... i may be wrong tho..
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

Sirius wrote:I think tpg meant that he wanted different icons for different convosation windows, simutaneously... i may be wrong tho..
Sorry, yes, Sirius, you are right.

But I DID make a script that sets your image to a random one of a set.
Blog | X(tras)
Communists code without classes.
User avatar
twopeak
Crema
Posts: 407
Joined: Tue Jan 25, 2005 2:53 pm
Location: Flanders - Belgium

Post by twopeak »

zaudragon, I can't find it...
http://www.adiumxtras.com/index.php?a=u ... er_id=1051
doesn't list your script...
It seems very nice!
Could you send me the url where it is?
Thanks alot!
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

twopeak wrote:zaudragon, I can't find it...
http://www.adiumxtras.com/index.php?a=u ... er_id=1051
doesn't list your script...
It seems very nice!
Could you send me the url where it is?
Thanks alot!
Of course not, it's still pending :P

http://adiumxtras.com/index.php?a=xtras&xtra_id=1386

Have fun :lol:

It involves many steps to work, and I need some suggestions on how I could change that.
Blog | X(tras)
Communists code without classes.
User avatar
twopeak
Crema
Posts: 407
Joined: Tue Jan 25, 2005 2:53 pm
Location: Flanders - Belgium

Post by twopeak »

For starters: I don't know AppleScript, so all my ideas are just concepts...

A solution to your problem might be that ppl have to put all the images in one folder at a specific location.
This way, you can just say "use all the pictures of that folder"
/Library/Application Support/Adium/randomicon/ seems like the correct place to put it?

It seems like you can count the amount of items in a folder, and adress each item with the numeric value.
If this item is a file (or maybe you can even check if it is an image of the correct size?) then it can be added to the list of items to be used.
A nice thing would be to somehow make a list of all the items, and remove used items out of the list, so they won't be used next time.


And then personal opinions: I would have liked the icon to change on every startup of the application, or on every connect of a protocol!
I don't know if this is possible, but a change every 30 seconds will make people go crazy (I would at least).

Instead you might make a script that is called in from the events window (when "you connect" execute this applescript)
And consequently, it should change the image of the connecting account, and not "every account".

Anyway, it's a great script!
sorry for the error ::wink::
Last edited by twopeak on Mon Mar 14, 2005 3:57 pm, edited 1 time in total.
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

twopeak wrote:A solution to your problem might be that ppl have to put all the images in one folder at a specific location.
This way, you can just say "use all the pictures of that folder"
/Library/Application Support/Adium/randomicon/ seems like the correct place to put it?
Not JavaScript, but AppleScript ;)

I could try that; it'll be easier for the user, so maybe ~/Pictures/randicons will be good
Blog | X(tras)
Communists code without classes.
User avatar
twopeak
Crema
Posts: 407
Joined: Tue Jan 25, 2005 2:53 pm
Location: Flanders - Belgium

Post by twopeak »

I don't like ~pictures/ !
maybe it's personal, but I put pictures of my digital camera there, and nothing else.
To my no-developper brain it seems like it should be hidden away somewhere.
other options ar /Library/User Pictures/ where the login images for Apple are or ~/Library/Adium (that's less far away than the general library, but if multiple users use it, it might be a problem?)


edit I know enough AppleScript to edit it myself... It"ll be good anyway!
Last edited by twopeak on Mon Mar 14, 2005 7:09 pm, edited 1 time in total.
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

twopeak wrote:I don't like ~pictures/ !
maybe it's personal, but I put pictures of my digital camera there, and nothing else.
To my no-developper brain it seems like it should be hidden away somewhere.
other options ar /Library/User Pictures/ where the login images for Apple are or ~/Library/Adium (that's less far away than the general library, but if multiple users use it, it might be a problem?)
Sorry, I used ~/Pictures/randicons as the folder… And the script is 1.1 by the way.
Blog | X(tras)
Communists code without classes.
User avatar
twopeak
Crema
Posts: 407
Joined: Tue Jan 25, 2005 2:53 pm
Location: Flanders - Belgium

Post by twopeak »

I'm trying to edit the script so it will change the icon when I connect.
I haven't done anything yet, but ....

When I go to the preferences > events, I see I can add an event
"when you connect" then I choose "Run an applescript".
But then there's no place to say what applescript!

Seems like a bug or something like that to me?
I'm affraid to scream it's a bug because I might have overseen something...
Post Reply