Skip to main content
May 26, 2011
Question

Printing from Photoshop using AppleScript

  • May 26, 2011
  • 1 reply
  • 2494 views

I am working on a project that will automatically print an image that is moved to a folder.

Right now, I have the following working: the image from my camera saves to a folder on my desktop, then applescript opens the image in Photoshop and runs an action on it that resizes it, crops it, and then re-saves it into a different folder. Here's where my problem starts...

My printer - an Epson R800 - does not have a default paper size of 5x7 borderless. That selection has to be made in Photoshop, however, Photoshop actions will not capture paper settings. (Which I think is sooooo stupid, but that's another issue.)

When the image is dropped in the second folder, it currently automatically prints, but on "letter" size paper.

I need to script the following:

Tell Photoshop CS4 to open the image (well, I can do that), but then select the correct paper size (5x7 borderless), and print. I've tried a few different things and they aren't working.

Any help would be appreciated!

Thanks,

Michelle

This topic has been closed for replies.

1 reply

Muppet_Mark-QAl63s
Inspiring
May 26, 2011

Do you only have Photoshop? If you have the suite then placing and printing from Indesign would be my preferred route… You would just have a saved print preset handle all the options… As far as Im aware printing with Photoshop does not record with actions or the scriptlistener plug-in… So GUI scripting it would be your only option… PITA to do and not very reliable…

May 26, 2011

Yes, I have the full CS4 compliment.

I don't think I've ever used InDesign actually, does it have actions like Photoshop does? Or how do I set up a "saved set" of presets?

I'll still have to script it from AppleScript to open and run something, as camera-to-output needs to be 100% automated.

Muppet_Mark-QAl63s
Inspiring
May 26, 2011

Indesign is a page layout application… But as your page only requires the one rectangle to place an image in it should not be too difficult for you. Set up a print options with all your printer specific requirements save it then this can be called by script in the future… Makes things much simpler…