Page 1 of 1

Can you randomly shuffle your buddy icon?

Posted: Fri Feb 25, 2005 5:12 pm
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?

Posted: Fri Feb 25, 2005 5:46 pm
by Tipo 61
Someone might have, or be able to write, a script for this. It may be possible...

Posted: Fri Feb 25, 2005 6:06 pm
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.

Posted: Mon Mar 14, 2005 1:47 am
by zaudragon
I made this script and submitted it to Adium X(tras)

Posted: Mon Mar 14, 2005 4:41 am
by Sirius
I think tpg meant that he wanted different icons for different convosation windows, simutaneously... i may be wrong tho..

Posted: Mon Mar 14, 2005 5:08 am
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.

Posted: Mon Mar 14, 2005 11:55 am
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!

Posted: Mon Mar 14, 2005 3:30 pm
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.

Posted: Mon Mar 14, 2005 3:48 pm
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::

Posted: Mon Mar 14, 2005 3:52 pm
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

Posted: Mon Mar 14, 2005 4:03 pm
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!

Posted: Mon Mar 14, 2005 4:33 pm
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.

Posted: Wed Mar 16, 2005 4:38 pm
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...