 |





Running 18 days
without a restart.


|
|


iTunes: Change The Text String That Prints On CD Jewel Case Inserts
March 17th, 2005
Anyone who has ever printed a CD jewel case insert from iTunes has seen the little string of text (Printed with iTunes) that prints at the bottom of the song list. I imagine that a lot of users would like to change that string to something more personal. Here's the skinny on how to make that idea a reality!
This mod was made possible through the generous assistance and insight of our helpful friends; Randy Meadows, ben, Daniel Øhrgaard, Peter Sobot, and "the pickle".
String modification is an area that I have little personal knowledge of. Randy gave me a quick overview of Pascal strings that was very instrumental in helping me understand the process of changing string length, we'll share his notes within our article.

First things first make a copy of your current install of iTunes. I copied the entire app, version 4.7.1, to my desktop and renamed it iTunes Pig.
Required software; HexEdit, ResFork or other similar applications.
Control Click or Right Click on iTunes, select Show Package Contents from the contextual menu. Open the Contents folder, then Resources, then English.lproj (or your installed default language). Locate Localized.rsrc and make a copy just in case you need to try this mod more than once.

If your replacement text contains the same number of characters as Printed with iTunes (nineteen to be exact) you can use HexEdit to locate and replace the string.
Open Localized.rsrc in HexEdit and locate scroll down to line 00057700, highlight Printed with iTunes and insert your nineteen character replacement text (don't forget, spaces must be counted as part of the total).
Quit out of HexEdit, launch iTunes and print a CD jewel case insert to show off your cool new text string!

See the decimal "." directly in front of the P in Print? That's the hex equivalent of nineteen in a Pascal string, here's how Randy Meadows explains it...
A Pascal string is length-prefixed, meaning the first byte of the string specifies how long the string is, and the actual contents of the string starts at offset 1. The length byte is (obviously) assumed to be an unsigned byte; therefore, the longest string you can have is 255 characters.
The reason iTunes crashes if you merely substitute the text with that of a different length is because the length byte of the string needs to be adjusted. The original string, Printed with iTunes, is nineteen characters; in the file, the byte before the P is 19 (decimal), or 13 in hexadecimal (base 16). When changing the string to it to a different length (twenty-one for example) the hexadecimal needs to be changed to 15.
By changing the length byte, you can have any string you want, of any length up to 255 characters.
The appearance theme featured in this mod is Watercolor, verision 0.5, by The Flannel Effect.

|
 |