Setting print size preset in AppleScript I've been using Folder Actions to automate printing photos taken from OS X built-in Photo Booth software. The AppleScript I use is as follows:

on adding folder items to this_folder after receiving added_items
    try
        tell application "Canon iP2700 series"
            activate
            print added_items
            quit
        end tell
    end try
end adding folder items to


Is there anyway I can set the print job to use a preset size using AppleScript or maybe change the defaults so that AppleScript prints uses that size by default?

I've noticed that they use the size at:

System Preferences > Printers &amp; Scanners > Default paper size

But I require the printer to print at 75x105mm which is not in any preset.
If I say anything that you already know I apologize.

It all starts with your printer capability.

Does the Canon supports that size?

Open a app like TextEdit and use the "Page Setup".

Now select your printer and select the print size if available. If not available use the Manage Custom Size and add new size (+) and the dimensions.

Example:



Set it up:



Now go to Print (in TextEdit) and select the Printer &amp; Scanner preferences and select default size.



size