Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm working on a photo booth web app that's going to run at a kiosk, and I'm trying to figure out how users can make a 4 x 6 printout of their photo.

When the user requests a printout, PHP resizes the photo and moves it into a folder being watched by Automator. When Automator sees a new photo is runs a "Print Images" action, but the action doesn't have an option to change the paper size, so it prints at the default US Letter. It seems this could easily be accomplished by setting the default paper size to 4 x 6 in the Print & Scan options, but that doesn't seem to be a choice: Print & Scan Options

Is there any way to add custom options to this list? Of course another way to accomplish this would be fine, too.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

If you print from the command line with lp you can do something like:

lp -o media=Custom.4x6in filename

That will print at 6x4 on the default printer the file called filename.

On my HP inkjet that made it pick the photo tray over the main tray.

So, put the above in a script and have automator run it pointing at the directory with the files in.

share|improve this answer
    
Perfect, thanks! –  Ryan Giglio Apr 26 '13 at 14:14
    
We have the same problem and we can not figure out where to place this code you have noted above to create the custom print size... Please can you elaborate? –  user66287 Jan 2 at 22:41
    
Terminal, (Applications -> Utilities), or another terminal emulator application. You'll need to navigate via the command line to where your file is, or reference it directly. You can drag the file into the window, after typing in the first bit above. –  Alex Jan 3 at 2:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.