How do I print duplex via AppleScript?

Hello - I am new to applescript and having a bit of difficulty trying to get started. My initial goal is fairly straightforward: each day (via an iCal action) download a specific URL and print it. Specifically, it's my daily newspaper and I'd like it waiting on the printer in the morning.
Most things worked very well via Automator, but I can't specify print options going that route (at least as far as I know). So, it my first good reason to learn AppleScript. However, I've perused quite a few sites and searched this forum, but can't figure out how to specify printer options like two sided printing.
Can anyone please point me in the right direction.
Not sure if you need this, but the printer type is a canon ip4300

When you say "Adobe", do you mean Acrobat or Reader (for PDFs), or one of Adobe's many other programs?
Usually, the option to print duplex is part of the print driver, and should appear in the print dialog regardless of the application.
Some apps have their own front to the print dialog, but you should still be able to get the rest of it.
The orientation is usually controlled by specifying Long Edge or Short Edge.

Similar Messages

  • From my iPad I can print wirelessly in my office, but how do I print remotely via the web through my HP ePrint printer.  It is set up with an email address but i don't know how to access it from my iPad.

    I can print wirelessly in my office from my iPad, but how do I print remotely via the web to my HP ePrint printer.  The printer is set up with an email access address but I don't know how to access it from my iPad.

    Read through this for some information on how to do this:
    http://www8.hp.com/us/en/support-topics/mobile-printing/how-to-print-mobile-devi ces-ipad-iphone.html

  • How to expand the folder via applescript?

    Dear apple experts,
    How to expand the folder via applescript?
    Manually we are using command + option + right arrow, but how we handle this in applescript?
    Thanks in advance,
    Velladurai.G

    Hello
    Finder's container's "expanded" and "completely expanded" properties have long been marked "NOT AVAILABLE YET" under OSX:
    Finder.sdef > Containers and Folders suite
    container n [inh. item] : An item that contains other items
        elements
            contains items, containers, folders, files, alias files, application files, document files, internet location files, clippings, packages.
        properties
            entire contents (specifier, r/o) : the entire contents of the container, including the contents of its children
            expandable (boolean, r/o) : (NOT AVAILABLE YET) Is the container capable of being expanded as an outline?
            expanded (boolean) : (NOT AVAILABLE YET) Is the container opened as an outline? (can only be set for containers viewed as lists)
            completely expanded (boolean) : (NOT AVAILABLE YET) Are the container and all of its children opened as outlines? (can only be set for containers viewed as lists)
            container window (specifier, r/o) : the container window for this folder
    A way to expand a given folder is to use keystroke command of System Events to invoke the keyboard shortcut in Finder. Something like the following script.
      kLeftArrowCharCode            = 28,
      kRightArrowCharCode           = 29,
      kUpArrowCharCode              = 30,
      kDownArrowCharCode            = 31,
    --set f to (path to downloads folder from user domain) -- target folder e.g.
    set f to (choose folder)
    tell application "Finder"
        reveal f
        tell Finder window 1
            set cv to current view
            if cv = column view then return -- do nothing
            if cv = icon view then set current view to list view
        end tell
        my _keystroke(it, character id 29, {option down, command down}, 0.2)
    end tell
    on _keystroke(_app, _key, _modifiers, _delay)
            reference _app : application reference
            string _key : character(s) to be keystroked [1]
            list _modifiers : list of modifier key to be pressed; enumerations are
                    command down
                    option down
                    shift down
                    control down
            number _delay : post-delay amount [sec]
            [1] Character must be present on the current keyboard layout. Otherwise, it is replaced by 'a'.
        tell _app to activate
        tell application "System Events"
            tell (process 1 whose bundle identifier = (_app's id))
                keystroke _key using _modifiers
            end tell
        end tell
        if _delay > 0 then delay _delay
    end _keystroke
    Regards,
    H

  • How to auto log in via applescript?

    I have no idea how to do it? do I need to curl, change html and post? but how do i post then? or how can i fill in password and log in on the safari page via applescript GUI scripting and press enter? I am just so confused right now:(

    I have no idea how to do it? do I need to curl, change html and post? but how do i post then? or how can i fill in password and log in on the safari page via applescript GUI scripting and press enter? I am just so confused right now:(

  • HT4356 I have just updated my Epson printer to one which supports air print but consider it to be a waste of money as my printer has two paper trays and there is option to choose which try...just "print"  How can I print photos via AirPrint from photo  tr

    Hi,
    First-timer on this...Just updated my printer which was less than one year old, to one which had Air Print capabilities. This one is the Epson XP605 which has two trays, one being for photos. Each time I tried to Air Print a photo, it printed from the A4 plain paper tray instead of the Photo Tray.Twice...then I came into my study and changed the printer settings to Tray 1 (photo tray) Photo paper, size 5x7 and  Photo Best, but still it printed on plain A 4 paper. Would be most grateful for any help, although I did read on one Apple site that AirPrint may not be able to choose trays!!!! "may not"??  Thanks

    I just figured out the print quality issue for my wife with her new iMac and new printer.
    She replaced both at once and she couldn't understand why her Artisan 730 was lower quality then her Epson R280 when they had the same specs.
    Turns out the newer printer had the option to connect via wifi which we used during setup.
    The driver options are completely different depending on how you connect.
    Once I connected via USB the correct options were available and the print quality was better.
    Looking at the R2400 it dies not have wifi, but while researching the problem for my wife someone esle was having an issue updating to the latest printer driver.
    If you go into the print utility from the Printer and Scanner system preference and under the general tab you should have driver 5.5.
    One user had to delete the old printer driver before Software Update loaded the newer printer driver.
    https://discussions.apple.com/message/15947486#15947486
    On my MacBook Pro (w Snow Leopard) I always had to reconnect my wifi at home when it woke up. I upgraded my router from an old Netgear to a newer N D-Link and stopped having to do that.
    I would be surprised you would have that problem with an Airport Extreme, you might check to see if there is a firmware update for it.

  • How to adjust print quality via iPad?

    How do you adjust the print quality in Pages via iPad? Or what is the best way to print a phoot from iPad?

    You do not adjust the print quality in IOS Pages. The capability of your Air Print capable printer for handling Postscript/PDF print jobs, and its inherent resolution capability/setting — will dictate the quality of the print.
    Suggest you open the document with Pages v5 on OS X, where you can control the output quality in a PDF export to a capable printer.

  • Lost my option to print duplex. How do I get it back?

    Lost my option to print duplex. How do I get it back?

    Sig, I don't know what happened. I was printing in duplex frequently. My wife installed a new computer (PC) and  was hooking up to printer via wifi. Then I couldn't print, turned the printer off and on and it printed for a short time. Then quit again. In all of these cases, the box for duplex printing was not showing. I tried to go to the systems and turn it on, without any instruction or help. Turned the printer off again, disconnected the connection to the router and turned everything back on again. It printed and printed a document in duplex. I consider your response as having some magic and therefore mark it as "solved." Thanks for responding.
    Allen

  • How do I "Print Booklet" with just odd pages and even pages for duplexing . . options disabled

    I have InDesign CS5.5 on a Windows 7 64-bit machine hooked to a Xerox 7750 printer.  I have created a 8.5x11 portrait document and trying to create a booklet on 12x18 sheets.
    I need to print duplex manually and so I need to print just the odd spreads and then the even spreads.
    I have printed to Adobe PDF and printed from my created PDF file and have it working, but I want to know why InDesign won't let me do it.  When I click "File > Print Booklet > Print Settings" then it shows the Print Dialog box with the Pages section, which includes the Sequence that normally would allow me to do Odd Pages or Even Pages, but it is disabled.  Why?  I can define Print Presets and I can choose Odd Pages, but when I choose that in the Preset box it does not show anything, everything is still disabled.
    Anybody have any idea of why it is disabled?  Is it my printer driver?

    I too was very frustrated after upgrading to indesign cs5.5 and the latest LION OS on my new MAC.  I missed the odd/even page selection in the print dialog box within Indesign.  I tried about everything and found little of value in various forums.  But I did find a workable solution that makes since in terms of Apple's OS.
    My objective is to "impose" my document and also end up with a file that I can just print again and again without "ripping" in the InDesign Print Booklet Dialog.
    Here is the quick version of what to do.  I am not including every little step with pictures. =)  (I can if there is interest.)
    1. create your document
    2. Print Booklet
    3. At the first dialog box, just ignore the printer in print preset (you will come back to this) and go to the 2-up perfect bound option and select 16 page signatures.  This will impose 2-up on 4 physical pieces of paper printed both sides.  So 16 of your document pages printed duplex on 4 physical sheets of paper.  It would be nice to then just select the printer and scaling, etc. and the option to print even pages, flip over and then print odd pages but that ain't an option.  If you have different needs, do the math and input the correct numbers before proceeding
    4. Click on Print Settings  to pull up a second dialog box.
    5. Select for Printer PostScript File (not your printer)  Also select for PPD your printer or Adobe PDF 9 if you have that installed.  Don't obsess on this just pick your Printer for the PPD.
    6. Select 1 copy and All Pages while in the General Tab
    7. Select the Setup Tab Here is where you put in the actual physical paper size that you are going to print your document on. Don't scale to fit.  You must do this.  If you feel the need, check out all the tabs and options but for now, you are just trying to get an output file.  You probably do want to select CENTER for page position in this same setup tab.
    8. Hit OK whcih will return you to the original dialog.  Check when you return to be sure that at the top Printer is populated with PostScript File.  Click on Print and give the thing a name and a location to save at the resulting dialog.
    Breathe as you are almost home.  You have sucessfully created a file that can be called up again and again without opening InDesign. (albeit, a postscript file but not a problem)
    Now,
    1. Double click on this new file (it will have a .ps extention) or just open it in your PREVIEW (apple supplied utility)   Preview is where you accomplish the even and odd page objective.
    2. Preview will show you a short progress dialog while it rips this postscript file into a PDF.
    3. Click on PRINT
    4. Select your printer,page range, select the Paper Size (again not document size  but  the size sheet that you are printing the 2-up , imposed (booklet) document on. If not in the selection dialog, then use the custom option to create it (custom paper size) and give it a name.
    5. Click on SCALE and insert 100% in place of the weird number that it will insert for you.  You will then see your document correctly displayed in the sidebar preview window.
    6.  OK, now what you have been waiting for. Click on the box that says Preview (the active window) and select Paper Handling from the drop-down and select from Pages to Print the coveted odd or even page selection.  You can also do other things that should have been back at the InDesign print dialog but are now gone.  Explore. Enjoy.
    7.  You will have to work out your own work flow about reverse or no reverse order and how to flip, etc. But you will be working with something predictable at this point.
    8.  Since this has been ripped into a PDF , you might as well Click on the PDF button and click on save as a PDF at this point to save that postscript to PDF rip.   Also print using PREVIEW for the newly created PDF file next time as you will not have to learn a bunch of new dialogs and be frustrated all over again.
    I am now back in business printing the book blocks for my handbound journals.

  • How can I print from my ipad2 via my Canon Pixmar MP620 wireless printer? I get a message stating "no airprinter found".

    How can I print from my ipad2 via my Canon Pixmar MP620 wireless printer? I get a message stating "no airprinter found".

    Welcome to Apple Support Communities.
    If you have a Mac running OS X, try AirPrint Activator.
    http://netputing.com/airprintactivator/airprint-activator-v2-0/
    It's "donation-ware."
    Free to download and try. If it works and you like it, the developers do appreciate a donation, but the app continues to function, even without a donation.

  • How can I print an email that is on my iphone directly to the Acrobat PDF maker on my laptop if the iphone is connected to the computer via data cable?

    How can I print an email that is on my iphone DIRECTLY to the Adobe Acrobat PDF maker on my laptop if the phone is connected to said laptop via the data cable?

    Looks like I'm SOL since I don't have an HP printer.  Would never own one, the consumables are too **** expensve.  Thanks all

  • How can I print an email from my ipad via my Lexmark printer?

    How can I print my emails from my ipad with my Lexmark printer?. I can print photos & web pages.

    Hi there Lindlylou!
    I have an article here that can explain a little more about the feature you are referencing, called AirPrint:
    AirPrint Basics
    http://support.apple.com/kb/HT4356
    That article will contain information about which printers are AirPrint compatible, as well as information about how to use AirPrint on your iPad. Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • How can I save a Adobe document to print duplex for other users.

    I want to create a doc using Adobe and be able to set it to print duplex by other users without the user needed to go into printer settings.
    All the user has to do is click print on there computer and the doc. will print duplex. The users have Adobe Reader installed.

    It is possible to set a default value for the Adobe Reader or Acrobat print dialog on a document basis. After the document is created, go to Document Properties (Ctrl-D), and select the Advanced tab. Go to the DuplexMode setting. Normally, this is set to Simplex, i.e. single sided printing. You can also set it to either Duplex Flip Long Edge or Duplex Flip Short Edge depending upon your needs. Duplex Flip Long Edge is normally used for printing of “portrait” orientation content with Duplex Flip Short Edge typically used for printing of “landscape” orientation content. Then save the PDF file (typically, “save as” should be used).
    Important notes: Obviously, this only works if the PDF file is being opened by one of the applications that even bothers to look at these settings. Adobe Reader and Acrobat do. Don't count on MacOS Preview or other applications to do so! Furthermore (and somewhat obviously), this setting is only observed with print devices that directly support duplex printing. And finally, this does not force the user to print duplex. It simply pre-populates the print dialog; the user can change the setting.
              - Dov

  • How print duplex on Solaris 10 0508 x86 ?

    Hello,
    I just installed Solaris 10 0508 x86 on a Ultra 20. We have a networked HP laserjet 8150dn printer. What is the option to print duplex?
    Previously on Solaris 10, 1106, I followed the instructions on http://www.sun.com/bigadmin/content/submitted/duplex_printing.html and was able to print double-sided.
    However, now on update 0508, the same lp and lpadmin option "-o sides=two-sided-short-edge" doesn't work - still prints single-sided. What gives? Please help me save a tree!
    These lp or lpadmin options didn't work either:
    "-o duplex"
    "-o sides=duplex"
    Also looked at HP's SOLe134.PKG, but it's for SPARC, not x86 - couldn't find a download for x86.
    Thanks!
    Edited by: onetree on Jul 16, 2008 9:36 PM

    I'm not sure if there was some sort of corruption, but I eventually resolved the issue by removing and readding the printing-related packages from the CD:
    SUNWpcr
    SUNWpcu
    SUNWpsr
    SUNWpsu
    SUNWpsf
    SUNWscplp
    SUNWspman
    SUNWscpu
    and then installing a default local virtual printer before the network one:
    # lpadmin -p new-printer -v /dev/term/a -T PS -I postscript..
    # enable new-printer
    # accept new-printer
    # lpstat -t

  • How do I get my new MG5420 to print duplex?

    Have new Mac and new MG5420 that is supposed to print duplex but wont.....or cant.  The print boxes from the applications do NOT have any place to choose duplex........

    I got to this thread because I had the exact same problem.  I set up my printer wirelessly to connect with an Imac and a Macbook Air, both with Mac OS Mountain Lion.  When I asked it to print, there were only a few options.  There was no duplex available, nor were there color options.  After trying a number of options like reinstalling printer drivers, I finally hit upon a solution.
    I connected my printer to my Imac with a usb cable, and it showed up in my system preferences as "Canon MG5400 series -2" I enabled "share this printer on a network."  Immediately on my Imac, when I went to print, all the print options were available including duplex and color options.
    I then went back to my laptop, and found the options were still NOT available.  However, I clicked on the "Printer" line at the top of the Print dialogue box, and it let me choose "Canon MG5400 series -2." As soon as I did that, all the advanced print options appeared on the Laptop Print dialogue box as well.
    I don't know if this is the only way to fix the problem, but it certainly worked for me.  I know the option that I have repeatedly seen of "Look for a drop-down menu with the heading of either "Layout," "Copies and Pages," or the name of the application you are printing from.  Change this to 'Duplex Printing & Margin'" simply does not work, as the "Duplex Printing & Margin, just did not appear.
    I hope this works for you as well.

  • How do you "save as" in Acrobat 9 via Applescript?

    Greetings all,
    I'm using the Applescript Script Editor and trying to do a "save as." The Applescript dictionary for Acrobat 9 has a reference to "save" in the Core Suite, but no matter what I try, I get an AS error that typically contains the text "document 1 does not understand the save message."
    I can do a "save as" via Applescripting that GUI but that seems problematic as well (I've set the Properties > Initial View options for document 1 after inserting a page--all via Applescript--but doing a "save as" via the GUI apparently does not save those properties. I would hate to have to script the process of having Acrobat open the file again and reset the initial view; I should be able to do that before saving the new file.
    Thanks,
    Kevin

    Hold down the OPTION key. The Save As option should appear in the File menu.

Maybe you are looking for

  • Installation on linux problem

    Hello, I just installed j2sdk-1_4_0_02-fcs-linux-i586.rpm on my linux machine as the instruction says. After installation, I run "java -version" to see if it works. It complains, "command not found". The instruction does not say any thing about setti

  • Macbook running slow

    Hi, A few people have asked this question, my macbook is running very slow and the mouse spinning circle comes up quite a lot. I am unsure of why it is doing this. I have attached a copy of the EtreCheck I have done on my system. Can you please have

  • Data rate supported by 6533

    Hello, Can someone tell me what is the data rate supported by PCI 6533. i mean transfer the data from peripheral to the hard disk of the PC.

  • Cant't get my ipod nano 6th gen to stop repeating

    I use the shuffle on the playlists,songs,genres,albums etc and when a song plays it repeats itself. I don't know what I did but I would like to turn off the repeat of the song..any help with this? I cant seem to find it on this new nano.thanks

  • My device is visible in Windows 8, but is not recognized on iTunes.

    My device appears in my Windows 8 laptop, but iTunes doesn't recognize the ipod. Done all the troubleshooting steps 3 times.  Used 3 different usb connections to try to sync.  Erased my ipod twice.  And reloaded itunes also.