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

Random Buddy Icon

Submitted By Takumi Murayama (zaudragon)

Description

NEW IN 2.0
Like Randam++, you can set a delay time for the script that is a half minute or greater. So 5 minutes would be /randicons{5} and 30 seconds would be /randicons{0.5}.

I was dumb enough to use Replace All with randicons -> icons so use ~/Pictures/icons now :D

2.1 just fixes not closing access to the image, and has comments so you can understand it better.

This is a script to give you a random buddy icon.

Drop icons into ~/Pictures/icons and then invoke /randicon{delay} inside Adium
Place /randicon{delay} in your profile, alias, or away/available message to refresh your icon automatically with your delay time.

gummerdesign wanted this, and ialphan gave me the hope for extra delay times! Thanks!

Comments

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

# by dajak on 03/14/05 at 20:37:53

Niceee very nice ;)

# by Keymon on 03/14/05 at 23:30:00

Hei, rules!!
I was searching for documentation to devel something like this :-D.

# by Keymon on 03/15/05 at 00:06:42

It's great, but changes icon too fast. Could the time be seted, for example using /randicon(300).

# by zaudragon on 03/15/05 at 05:28:59

Keymon: I can't change it :P

# by gummerdesign on 03/16/05 at 19:38:53

yeyeyee just what i was looking for and its great whoooooooo thankyou for taking the time to do this for me its greatly apperciated :)

gummer xx

# by TBone on 03/19/05 at 21:35:38

pictures/randicon is just atextfile. How can i put pics in it?

# by zaudragon on 03/20/05 at 05:07:12

No you're supposed to make the folder Pictures/randicons and THEN run the script.
Maybe I could fix that bug.

# by Carwash on 03/25/05 at 10:33:04

Great plugin, filling a real need! But...
"...Place /randicon in your profile..."
How do you mean, exactly?

# by zaudragon on 03/25/05 at 16:44:31

Profiles are only in AIM (or at least the ones I'm talking about)
You could put it in your alias or display name for other services.

# by ialphan on 03/28/05 at 01:44:29

Is it possible to change the dir of the icons to a more specific dir?
ex. pictures/randicon to pictures/xyz/xy/z/randicon

# by zaudragon on 03/28/05 at 02:46:43

Yes, replace "~/Pictures/randicons" with your path (POSIX or UNIX-style)

Then, replace "(path to pictures folder as string) & "randicons:"" to your liking, this time as a Finder path.

For example, for yours, "~/Pictures/xyz/xy/z/randicon" and "(path to pictures folder as string) & "xyz:xy:z:randicons:"" would work.

# by ialphan on 04/04/05 at 20:29:03

Thanks zaudragon!

I have a weird idea: Random nicknames! It could be retrieved from .txt file in a specified directory.

Could this be done?

# by zaudragon on 04/04/05 at 21:11:39

ialphan: yeah it'll work. Do you want it? I could do it...

# by zaudragon on 04/04/05 at 22:21:10

ialphan: I made it, it's pending, and it'll be callsed Randam++

# by ialphan on 04/06/05 at 12:34:23

Make it happen Zaudragon!

# by on 04/10/05 at 02:46:25

Installing this version has made the script entirely non-functional for me.

# by Tbone on 04/10/05 at 15:01:05

I don't understand it.

I*ve downloaded the file createt the direction Bilder (I'm german)>randicon and run the icon on my deskto. In my randicon directory are 17 pic, but adium for icq doesn even thik about changing. Where have ito type /randicon{delay}?
have i to set 5 or 0,5 in the brackets?

# by zaudragon on 04/10/05 at 19:35:00

Anti: make sure you actually have something in its brackets. Otherwise it won't work.

TBone: I'm not sure how it'll work on a german machine. And I know that 0.5 works for us Americans, but I'm unsure if 0,5 will work.

Sorry for the confusion guys, this was a weird release with dependencies such as your Pictures folder being ~/Pictures/ and not ~/Bilder/. Sorry, maybe I should fix that?

# by on 04/10/05 at 21:23:14

I'm having a problem with the fact that it's drawing my icons from my pictures folder, not the "randicon" folder. How do I fix this?

# by zaudragon on 04/11/05 at 02:55:50

I think it got changed to ~/Pictures/icons? let me change the description

# by on 04/18/05 at 10:43:19

I cant make it work :-( I made the folder for ~pictures/icons (in my users directory where also adium is installed) I installed the script in Adium and then put it in my away message and I tried also in my alias but nothing happens... In the script it says it makes or finds a file in the prefeneces folder but that file doesnt exist/is not made could that be the problem?

# by zaudragon on 04/19/05 at 23:05:45

Anne marie: are you using an English system? because I made this totally reliant on english system-ness. I'll fix that later when at least 5 people need it... I'm lazy.

# by Anne Marie on 05/05/05 at 15:08:33

If you talk about my computer no, I use the Dutch version. Or I think it is more bilangual... If that is the problem I wait patiently. Then I hope there will be few more people with the Dutch system that want to have this script.
The new adium x 0.80 here is standard in Dutch too, and I dont even like it in Dutch... so will this be a problem for the script anyway?

# by on 06/18/05 at 14:33:56

Is it possible to do a cript which takes a screenshot of the desktop and puts it as an user icon? Thanks

# by krisliu77 on 05/31/06 at 11:44:11

i insert this script in my alias and also have one in my away messeng. but there is a "/randicon{5}" in my name, and my picture didn't change from ~/Pictures/icons

# by zaudragon on 05/31/06 at 12:10:57

Is /randicon at the begining of the alias/away message? It might only work that way.

# by krisliu77 on 05/31/06 at 12:17:32

ok, it works, thx body!

# by sdh on 02/22/07 at 08:59:07

hiya!
One thing I'd like to see is buddy icon switching at a specified time.
For example, between 08:00 and 11:00 to show some icon, then at 11:00 it switches to another one that'll be shown until 14:00, and a new one from 14:00 to 17:00 and so on...
It doesn't have to be exactly at those times, this would be selectable. I don't mean random icons, but chosen ones for each time period.
Is this possible, and will you consider this?

And thank you for this great xtra!

# by zaudragon on 02/22/07 at 20:05:20

The easiest way to do this would be either in iCal, or crontab. It’s out of my (the script writer’s) range to change these files for you.

They both schedule things, including AppleScripts, so just write an AppleScript to change the buddy icon to ____ file.

# by sdh on 02/23/07 at 07:53:16

thanks! will do that :)

# by horaciosalva on 02/27/08 at 16:21:08

Hello everybody! i'm sorry but a don't understand WHERE i have to write /randicon{0.5} to get this script working. I don't know from where apple scripts (adium) are executed.
Some say, write /randicon{0.5} in your profile.....where's that??????? others at the begining of the alias/away message ????? i've put my alias like this:
"/randicon{0.5}Horacio" and it didn't change my buddy icon. are the "" mandatory???

thanks a lot guys!

# by zaudragon on 02/29/08 at 04:49:23

Since the new version of Adium modified the AppleScripting system, I don't think this script would work (or at least, I haven't updated it at all).

Maybe I should disable this extra.

# by horaciosalva on 02/29/08 at 01:02:59

i'm going to cry! why it doesn't woooooooork for me?????????????!!!!!!!!!!!!

# by horaciosalva on 02/29/08 at 16:45:14

yes! sure you should disable this!!!!!

# by Fishd on 03/11/08 at 09:07:23

Ok, I think I've managed to fix this for the latest versions of Adium... but I know next to nothing about Applescript so you accept that this is at your own risk.

Navigate to the xtra... right click and choose 'Show Package Contents'
Go into the 'Contents' folder, then the 'Resources' folder
Right click on the 'Icons.scpt' file choose 'Open with...' and select 'Script Editor'

Find the line that reads: set «class AusI» of every «class acct» to tifimagedata -- sets the buddy icon
Change that line to read: set the image of every account to tifimagedata -- sets the buddy icon

Click 'Compile' and save the script.

Test it

If it doesn't work now, you may need to open a terminal session and type: touch ~/Library/Preferences/com.adiumX.icons.scripts
That file is supposedly created by the script but I couldn't find it on my system so I created it manually.

# by Fishd on 03/11/08 at 12:35:57

Hmm, there's a small problem with the timings it seems. The script changes the picture ok but it's definitely not obeying the time set in the profile.

# by soeshi on 05/07/08 at 14:54:49

Hi, I just discovered this script and I think it would be great if it worked. I downloaded and installed it, but it won't work. I don't know if I did something wrong, but I don't understand what I have to do :s After I downloaded it and it was successfully installed, I created a folder named icons in the directory Afbeeldingen (Dutch for Pictures; I work with a Mac & Adiumprogramme in Dutch). Then I put the script /randicon{0.5}at the beginning of my nickname in Adium, but nothing happens :( Can you help me? I'd really want this script to work! Thanks!

# by zaudragon on 05/08/08 at 01:40:33

I really don't know if this is compatible with recent versions of Adium. But anyway, I would say that having an actual folder called "Pictures" is necessary, since I think I use absolute paths in the script. And the best place to put this is probably your profile/display name.

# by soeshi on 05/08/08 at 17:56:02

Hi, thanks for the answer. I managed to convert my folder Afbeeldingen into Pictures. So that should not be a problem anymore. But as you thougt, the script isn't compatible with the newest version of Adium. I downloaded the previous version and there the script works. Now, I use the 2 versions. I have 2 accounts and I want to use is with only one of them. Or it depends on my mood :) But it's not really practical. Is there any chance, you could make the script to work with Adium 1.2.5? Can you use the script for 2 accounts but each with different pictures? For example: account A gets pictures from folder 1 and the other account (B) from folder 2? Or is this too complicated?

# by pij on 07/29/08 at 11:48:25

Hi this script would be exactly what i need.. i ask you if you could update it for the new adium version.. and it could be possible to put an order in the way pictures change?
i have tried to do some change but i'm not abble to do this. tnx

# by pij on 07/30/08 at 08:35:33


to make it work on new adium version i've made like Fishd says (tnx guy!)
and to put order in images change i have do this


repeat with num from 1 to (count of icons)
set img to ((path to pictures folder as string) & "icons:" & (item num of icons) as string) -- gets the image
....
....
set image of every account to tifimagedata -- sets the buddy icon
delay 100
end repeat

# by jolleyjoe on 09/07/08 at 01:38:25

pij: I've tried what fishd said, and it still doesn't work. Do you have any advice?! :)

Developer, please update!

Post a New Comment

You must be logged in to post comments.

Install | Download
6.41kb (1382 downloads)

12345
2.70 / 222 votes
Current Version: 2.1
Last Updated: 04/08/05
Credits:
gummerdesign for the idea, ialphan for the hope in a delay system, SLMalling from #adium for rewording of the delay section, and Hypercube for the Artwork script which this is based on: adiumxtras.com/index.php?a=xtras&xtra_id=921