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

Artwork

Submitted By Martin Crisp (Hypercube)

Description

New Version: v1.2

Set your buddy icons to the artwork of the currently playing iTunes track.

Usage:
/makeDefaultArtwork
Sets the buddy icon from one of your accounts as the icon for %_Artwork to use when the current track doesn't have artwork, or when iTunes isn't playing.

%_Artwork
Sets the buddy icon of all accounts to the first piece of artwork in the currently playing iTunes track, if any. If there is no associated artwork, or iTunes isn't playing, the icon chosen on first run (or from /makeDefaultArtwork) is used.

Whether the change in an icon is visible to your buddies depends on their client, and the protocols you share in common. (I think :-/). For ICQ users, closing and reopening your conversation window seems to help the update be 'pushed' through.

To improve speed, Artwork.AdiumScripts keeps a 'cache' of icons. It only replaces an icon if the iTunes track has been modified since the cached icon was made. Additionally, if %_Artwork is used twice (or more) consecutively for the same track, e.g. in an away message, then the buddy icon is not updated.

Upgrading v1.1 to v1.2 & keeping your cached icons:
You do not have to do this, but if you wish to?
Your cached icons are in:
~/Library/Application Support/Adium 2.0/Scripts/Artwork.AdiumScripts/ Contents/Resources/ArtworkCache/
(That's the Library folder in your user directory; each entry thereafter is also a folder; but the Finder treats the Artwork.AdiumScripts 'bundle' differently; see below. )

Quit Adium.
Control-click on the already-installed Artwork.AdiumScripts bundle, and choose "Show Package Contents" from the contextual menu.
Now navigate to the Resources folder, and drag the ArtworkCache folder to somewhere else in your user space (so it is moved, not copied.
Install v1.2.
Now, using the same process as above to open the new AdiumScripts bundle replace the new (empty) ArtworkCache folder with the one you put aside.
(You do not need to quit Adium while fiddling with the icon cache provided you aren't connected)

Requirements:
Relies on the "Image Events" application, bundled with OS X 10.3.x (Panther)

Version History:
1.0
Uploaded, never released
1.1
Added code to give "Image Events" a 'nudge', as it otherwise seems to 'die' if ignored for too long.[1]
1.2
Removed that code.
Set Image Events to never quit.
Reworked code from top to bottom; extra comments, better error handling. (Though the error handlers don't seem to get called ;-))
Turned on 'PackBits' compression for the cached icons.

[1] As it turns out, this appears to be the Adium X "remote quit bug". My comments regarding the flakiness of Image Events were premature. oops :-)

Comments

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

# by BlueRevolution on 11/21/04 at 22:55:53

awesome! I can't make any sense of your code whatsoever but it does seem to work nicely, especially when used with now playing-type scripts. great work :)

# by Hypercube on 11/21/04 at 23:37:22

Thanks much!
The code needs more/better commenting. And I'd like to get a better handle on the included hack from Doug Adams.

As the Version History (such as it is) notes, Image Events is a bit dicey. So there may be minor revisions soon. I'd much appreciate comments (or emails) about any problems "making icons". (Quit & re-launch Adium if this happens.)

Thanks again,
Have Fun
Martin

# by Eric Svingen on 11/23/04 at 01:50:09

Is there any way to make %_Artwork run automatically, every minute or so? Or some other mechanism to have the artwork update automatically?

# by Eric Svingen on 11/23/04 at 01:58:56

Hypercube was kind enough to answer my question ... put %_Artwork in your profile or away message and it will update automatically every 30 seconds.

Thanks!

# by Hypercube on 11/23/04 at 02:03:20

Heh :-)
I would have answered here, too, but was adding comments to the %_Math page :-)
Have Fun
Martin

# by Hypercube on 11/23/04 at 02:15:08

It appears that the current 'solution' to Image Events hiccoughs isn't as effective as hoped.

I'm revisiting the code (to make it more readable/understandable for weirdos like BlueRev ;-)). Expect an update in the next day or so.

Have Fun

# by Hypercube on 11/28/04 at 03:55:18

Just for clarity: all the above comments are from v1.1.

I'd appreciate feedback on concerns (especially bugs) with 1.2 - suggestions for improvement would be good too :-)

Have Fun
Martin

# by Si on 12/01/04 at 21:44:23

I believe it's already on the todo list, but being able to set different Default Artwork for each IM account would be fantastic.

Other than that, excellent script!

# by Hypercube on 12/02/04 at 12:10:14

Thanks, glad you like it :-)

Yes, default-per-account artwork is on the todo list, there's also a minor bug in the current code for constructing the default icon (which shouldn't be a great problem to fix).

Unfortunately, I'm not likely to be able to get to either in the immediate future. I will, however, get to them as soon as I am able.

Have Fun
Martin

# by BlueRevolution on 12/29/04 at 20:20:39

there is one other bug--

the script launches iTunes if it isn't running. something else for your to do list I guess :) ... thanks for the script, now I have more people than ever asking me if I change my name AND icon whenever my music changes :D

# by Hypercube on 12/31/04 at 20:49:50

Oh, yeah. Ta. :-)

Have Fun
Martin
(Happy New Year!)

# by on 05/04/05 at 01:34:17

awesome man.. i am excited!! thanks!

# by Hypercube on 05/05/05 at 18:27:31

:-)

Thanks. I'm afraid I'm not going to be doing the changes anytime soon :-( Life has been and continues to be a bitch. Anyone inclined to try to take it over... go for it :-) have funMartin

# by on 08/04/05 at 21:36:04

Works great... Thanks for the excellent work

# by webby on 11/21/05 at 13:33:14

It is an awesome script super sweet idea, but... it doesn 't work for me? How exactly to you use. I put it nto the away message but I get an error #-1713.

# by gabyu on 12/15/05 at 21:28:24

I have a problem using it., with adium 0.87

when i add %_Artwork in my buddy name in msn, i have a Adium notification "Your new MSN friendly name is too long.", then this long text in my buddy name "No user interaction allowed.-> from makeDefaultIcon(HD:Users:gabyu:Library:Application Support:Adium 2.0:Scripts:Artwork.AdiumScripts:Contents:Resources:ArtworkCache:DefaultAdiumIcon.tif) -> from substitute(): Error #-1713 "

do you know what is it ? ... i'm a newbie... thanks a lot !
gab

# by Mal on 05/25/06 at 19:08:41

I'm having trouble figuring out how this actually works. Do you just send %_Artwork as a message, or is there somewhere else? Putting it in my profile didn't seem to work.

jW

# by Mal on 05/26/06 at 23:15:46

Nevermind, I figured out the technique, but it doesn't work. I'm getting the same error as gabyu.

jW

# by quisp on 07/14/06 at 12:01:24

Ugh, can someone explain how to use this? Where does "%_Artwork" go exactly?

# by zerock on 08/14/06 at 22:55:55

Does this work with the current betas?

# by zerock on 08/14/06 at 22:56:32

does it work with the global icon setting?

# by quarterlifecrisis on 10/25/06 at 14:53:34

like some of the users that came before me, i can't seem to figure out how to use this (read: where to put "%_Artwork"). could i trouble someone to spell it out exactly for beginners like me?

thanks!

# by balupton on 10/19/08 at 15:47:40

I get:

Adium got an error: Can’t get every «class acct».-> from makeDefaultIcon(OSX-HDD:Users:balupton:Library:Application Support:Adium 2.0:Scripts:Artwork.AdiumScripts:Contents:Resources:ArtworkCache:DefaultAdiumIcon.tif) -> from substitute( Error #-1728

# by govind.anand on 01/20/09 at 02:17:33

I get the same error as well. Can't seem to figure out what the problem might be. I used this script before on an earlier version of adium and it worked great. But alas, no luck with the latest one.

# by stan.c on 02/02/09 at 16:02:41

I fixed this bug. Get the correction here: http://dl.free.fr/c36Ys0Us2
Replace the file here: ~/Library/Application Support/Adium 2.0/Scripts/Artwork.AdiumScripts/Contents/Resources/%_Artwork.scpt
Note that it works properly most of the time but sometimes it doesn't get the correct artwork. I can't find the reason for the moment.

# by govind.anand on 02/02/09 at 17:53:26

Hey there stan.c:

I checked out the the link but I am unable to download the script. Moreover, the site was in French and is hard to navigate. Any quick fixes to this?

# by stan.c on 02/02/09 at 16:26:44

To get %_Artwork work automatically, I suggest you place %_Artwork in the profile of an unused account. Otherwise, your contacts will get its errors messages.

# by chrl268 on 02/03/09 at 04:28:32

link for it was dead?? and unused account as in, make up a random account and the dp for my msn account will change automatically??

# by stan.c on 02/03/09 at 08:23:24

%_Artwork change the icon of every account. It just have to be called once. So, I think place the call in an unused account is the best solution.

# by chrl268 on 02/03/09 at 04:49:04

and i've been bitching to my friend for ages to find this for me, thanks HEAPS, if only it would work now... lol

# by stan.c on 02/03/09 at 08:16:27

OK, the first site seems to work only for France. I didn't know that. Here's a new link http://www.4shared.com/file/83866966/...rtwork.html

# by chrl268 on 02/03/09 at 08:27:11

ta =]

omg it works - thank you thank you thank you thank you thank you thank you thank you!!!!!!!!

haha, and yeah, the second link works =]

# by stan.c on 02/05/09 at 10:05:53

I found why it wasn't every time the correct artwork.
Here's a better version: http://www.4shared.com/file/84545779/...rtwork.html

# by gonenutsbrb on 03/24/09 at 18:37:43

can you post a current working version for a complete install and instructions on where to place the %_Artwork? I'm a bit confused and I seem to be having problems with the plugin, but I love the concept. Please keep up the good work.

# by stan.c on 03/25/09 at 14:22:38

Here is a complete working version. I'm not the original developper but he allowed me to fix the script. So I can't post it as a current version in adiumxtras.com.
Get it there : http://www.4shared.com/file/94908967/...cripts.html

# by Penegal on 09/03/09 at 14:30:24

Excuse me, but it makes Adium crash under Snow Leopard. After a few seconds, Adium crashes, and only removing this Xtra's file allows a normal start of Adium.

Note : Adium 1.3.6, %_Artwork placed in Displayed name field...

# by juanchi on 09/19/09 at 21:19:52

I get the next error:

Adium got an error: Can’t get every «class acct».-> from makeDefaultIcon(Macintosh HD:Users:jbrasca:Library:Application Support:Adium 2.0:Scripts:Artwork.AdiumScripts:Contents:Resources:ArtworkCache:DefaultAdiumIcon.tif) -> from substitute(): Error #-1728

I try to uninstall y re install the script but it's the same, please help me I want to use this script. Thanks.

# by stan.c on 09/22/09 at 17:09:35

To Penegal & juanchi, did you download the version I posted ?

# by juanchi on 09/24/09 at 21:28:34

No I didn't but now I get this diferent error

No user interaction allowed.-> from makeDefaultIcon(Macintosh HD:Users:jbrasca:Library:Application Support:Adium 2.0:Scripts:Artwork.AdiumScripts:Contents:Resources:ArtworkCache:DefaultAdiumIcon.tif) -> from substitute(): Error #-1713

Any idea? thanks

# by Penegal on 12/08/09 at 13:58:22

Yes, I just tried, but Adium won't show anything but this error. I also tried to manually set DefaultAdiumIcon.tif, but it's uneffective...

# by stan.c on 12/08/09 at 14:25:01

I have just installed snow leopard. I'll try to have a look soon.

# by westbuzz on 03/02/11 at 02:40:36

cannot get this to work. I managed to create the defualtadiumicon.tif, its in the proper place. When I try %_artwork in a profile or chat message or away message i get the following error:

"Delicate file name. Macintosh HD:Users:cliffgreen:Library:Application Support:Adium 2.0:Scripts:Artwork.AdiumScripts:Contents:Resources:ArtworkCache:tmpIcon1E68ACD411AA0B4C.tif.jpg -> from makeArtwork(Macintosh HD:Users:cliffgreen:Library:Application Support:Adium 2.0:Scripts:Artwork.AdiumScripts:Contents:Resources:ArtworkCache:Icon1E68ACD411AA0B4C.tif) -> from substitute(): Error #-48"

thats was when %_artwork is in a profile (i have yahoo and aim) running OSX 10.6.6 and Adium 1.4.1 with the plugin being the 3/25/09 version posted here by stan.c

Any help?

Post a New Comment

You must be logged in to post comments.

Install | Download
29.66kb (2892 downloads)

12345
3.30 / 116 votes
Current Version: 1.2
Last Updated: 11/23/04
Credits:
Small sections of code borrowed from: AvengerPenguin [http://penguins.mooh.org/geek/adiumbuddyicon.xml]; and Doug Adams [http://www.malcolmadams.com/itunes/scripts/ss.php?sp=saveartworktofolder]