Skip to Content

AirPrint: how to make it work for shared printers

Update: The clever fellows over at Netputing bundled the files together with a snazzy install/uninstall button to produce AirPrint Hactivator, which takes care of all the under the hood business for you. The same caveats apply: remember that you are installing obsolete/beta system files, use at your own risk, and if you'd prefer a supported product there are options.

Mac OS X 10.6.5 was released yesterday, and one of the features it was expected to bring to the table was support for AirPrint, a new feature in iOS 4.2 that was supposed to enable wireless printing from an iPad, iPhone, or iPod touch. Unfortunately, whether it's because of technical problems or patent trolling, Apple pulled support for this feature at the last minute. In its current incarnation, AirPrint in iOS 4.2 will now only work with specific printers that come with AirPrint functionality built-in... and you probably don't own one of those.

iOS 4.2 hasn't been officially released yet, but some enterprising developers, Steven Troughton-Smith and Patrick McCarron, have already found a way to re-enable AirPrint functionality in Mac OS X 10.6.5. Apparently, three files from earlier developer builds of 10.6.5 were removed or altered for the final public release, and it's these files that are essential to restoring full AirPrint functionality. Click "Read More" for a walkthrough on how to enable AirPrint.

The usual caveat: This procedure involves a moderate degree of peril, and TUAW cannot help you if you mess up your system. Proceed at your own risk.

What you'll need

This procedure isn't terribly complicated, but it does involve at least one Terminal command. If you're afraid of the Terminal, you probably shouldn't attempt this.

1. You must have Mac OS X 10.6.5 installed.

2. You must have iOS 4.2 on your iDevice. If you don't want to wait for the official release, you can install the 4.2 gold master release right now with a minimum of fuss.

3. You must have the three files from the earlier developer builds of 10.6.5. We probably shouldn't give you the direct link, but if you're savvy enough to follow these directions, you're also probably savvy enough to find the files yourself via a Google search. Once downloaded, the filenames should be urftopdf, apple.convs, and apple.types.

What to do

Once all the required pieces are in place, it's time to fire up the Terminal, because the files you need to move around will be going into folders that aren't normally visible in the Finder (alternatively, if you know how, you can use Terminal commands to move the files into place and skip the "Make invisible files visible" step).

1. Use the following commands to make invisible files visible:

defaults write com.apple.finder AppleShowAllFiles TRUE

killall Finder

Once the Finder comes back up, you'll see an immense clutter of grey-texted files you may have never seen before. That's good.

2. Go to your main directory in the Finder (i.e., click your computer's name in the sidebar of the Finder) and locate a folder with grey text called "usr".

3. Move the following files to the following locations (you'll have to authenticate with your password each time you move files):

urftopdf: /usr/libexec/cups/filter/urftopdf

apple.convs: /usr/share/cups/mime/apple.convs

apple.types: /usr/share/cups/mime/apple.types

4. Once all the files are in place, input the following commands in Terminal to re-hide all those normally invisible files:

defaults write com.apple.finder AppleShowAllFiles FALSE

killall Finder

5. Restart your Mac.

6. Once your Mac is restarted, go into the "Printer and Fax" portion of System Preferences and delete the printer you want to use for AirPrint.

7. Re-add the printer.

8. Print something from your iPad, iPhone, or iPod touch, because now AirPrint should work on your shared printer.

Personally, I've never regarded printing from my iPhone 4 as a critical feature, and I'm betting many other iOS users haven't, either (with the possible exception of iPad users who use iWork a lot). But whether it's because you actually do have the need to print from an iOS device, or you just want to "stick it to the man" and enable functionality we were promised months ago, the above procedure definitely works. I've tested it myself, and I successfully managed to use AirPrint to print an e-mail from my wife with no issues at all. This may be the only time I ever actually use AirPrint, but at least now I know I can use it if I want to.



Categories

iPhone

Update: The clever fellows over at Netputing bundled the files together with a snazzy install/uninstall button to produce AirPrint...
 

Add a Comment

*0 / 3000 Character Maximum Comment Moderation Enabled. Your comment will appear after it is cleared by an editor.

21 Comments

Filter by:
Clark

This hack works perfectly on our 1/2 year old Canon MX870 series printer. If they could only print photos...

November 23 2010 at 12:39 AM Report abuse rate up rate down Reply
Kramerica Films

This hack broke printing on my machine. All applications failed to print at all, with an "failed while printing" error message. It also would then lock up the application GUI forcing a quit and relaunch. For example, Safari would not print, and then if you tried to create a new tab, it would not do anything. Restarting Safari and opening all windows from last session would then show the blank tabs I had created. This means the GUI failed but the app was still working.

I tried removing caches, resetting print system, etc., but to no avail. Restoring these altered files from a Time Machine backup before the hack and rebooting restored printing to normal.

There's a REASON Apple removed AirPrint from 10.6.5 final. It's because they found too many testers had this problem, and they couldn't wait anymore to release 10.6.5. It is very likely related to particular systems and printer drivers, but nonetheless, it will break some people's printing system completely.

November 17 2010 at 4:14 PM Report abuse rate up rate down Reply
teis123

Can anyone point me to the original files I would have before trying this? This did not work for me and I did not create a backup. Now I am unable to print from my mac at all. Please help.

November 13 2010 at 9:28 PM Report abuse rate up rate down Reply
Mr Lizard

What about PC users, how has Apple pulled the AirPrint option for them?

November 12 2010 at 1:19 PM Report abuse rate up rate down Reply
Junk

This all works but I get an error on my iPad when sending. If I simply say "continue" it does print fine though.

November 12 2010 at 1:01 PM Report abuse rate up rate down Reply
oldfrog

The reason to include the Airprint drivers with iTunes is so that Apple can provide Airprint drivers to iDevice owners running either Windows or OS X. In order to update to IOS 4.2 you will be required to update iTunes. iTunes updates both Windows and Mac...Profit

November 12 2010 at 3:24 AM Report abuse rate up rate down Reply
Joe

I have been trying to shoe horn these three files into my wife's PowerBook G4, and am not having much luck. /usr/libexec/cups/filter/urftopdf does in fact run from the command line, but complains about me not feeding it data. The mime files live in a totally different directory than with Snow Leopard, but replacing them and going through the process of removing and re-adding the printer does not allow my iPhone to see any printers shared from the computer. The firewall is off. Does anyone have any additional information to help me set up AirPrint on 10.5? I am not sure if there are some config files that I need to move over from SL (such as for cups, etc.) to enable broadcasting over Bonjour to my iPhone.

November 11 2010 at 11:09 PM Report abuse rate up rate down Reply
1 reply to Joe's comment
Richard Cartledge

It's never going to work on your wife's G4, as it requires OS X 10.6.5 and the G4 is ancient. If you have replaced those files on her laptop, it might break printing altogether.

November 13 2010 at 4:03 PM Report abuse rate up rate down Reply
adam.plante

Maybe apple just changed the location of the files and the 4.2 final build will take advantage of it.

November 11 2010 at 10:21 PM Report abuse rate up rate down Reply
Michael Richins

I didn't have to do anything to my OS nor anything to my iOS devise either and my HP printer that I have hooked up to my iMac works fine with my iPad.

November 11 2010 at 9:58 PM Report abuse rate up rate down Reply
Quad5Ny

Why does everyone assume that its pulled?

Maybe Apple decided to move the required files into iTunes 10.1.

November 11 2010 at 9:39 PM Report abuse rate up rate down Reply
1 reply to Quad5Ny's comment
Cowfodder

Why would they move printer call functions from the normal Unix location to within another program?

November 11 2010 at 10:35 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.