3

I need to create a automator application that launches the following exec command, whenever a image file is dropped onto it (the exec print the image files with some printing params).

exec('lpr -o ImageableArea=DS_8x6 -o PageRegion=DS_8x12 -o
PageSize=DS_8x12 -o media=DS_8x12 '.$fullPathOfTheImageFile);

How can I create this application? I can't go beyond this point: enter image description here

4

In the Run Shell Script action, change Pass input:, (upper right hand corner of the action), from to stdin to as arguments. Then you can get the result of the previous action passed to a shell script as an argument. Example:

lpr -o ImageableArea=DS_8x6 -o PageRegion=DS_8x12 -o
PageSize=DS_8x12 -o media=DS_8x12 $1

Run Shell Script action

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .