Unable to print with AppleScript

Hi all,
I would like to print a PDF document via AppleScript. I tried to use a the following AppleScript code
set my_pdf to "/Users/fabrice/tmp/a.pdf"
tell application "Adobe Reader"
activate
open (my_pdf)
print
end tell
end run
After script execution, the document is correctly in opened in Adobe Reader, but there is a dialog box with the following message: "AppleScript Error: Error in Abode Reader : unable to continue with print".
It seems that the "print" command is not recognized as an Adobe events.
For information, i'm never be able to successfully execute the "PrintPage.applescript" found in the "Acrobat 9 SDK". It doesn't compile.
Any advices ? Thanks for your help ?

Printing is a Function, of the system Your going to figure out how to open the PDF then have system call the printer. Note while Printing is a Function of the System it is called from with the application. If this will help the Command key  + the P Key opens the Print Window. I am not a person that uses Applescript so I can not tell you how to make the script.

Similar Messages

  • Unable to print with HP Color LaserJet 2605dn since Upgrading to Mavericks

    Since upgrading to Mavericks, I've had nothing but problems printing to my HP Color Laserjet 2605dn.
    I'm having this problem on both my iMac and my MacBook Pro.
    I get errors like:
    "unable to write pirnt data broken pipe"
    "unable to send data to printer"
    "printer not connected"
    I've been reading responses to others with similiar issues and I've tried
    deleting and re-adding my printer.
    reseting my printing system
    Installing Guenprint.
    re-adding my pirnter with a generic PCL driver.
    None seem to correct the problem.
    This problem happens both when connected directoy with USB and when connected through the network.
    I have no problem printing with my work (Wondows) laptop.
    Any help would be appreciated.

    Thanks, a brody.
    Yesterday (before I read your response), I downloaded the latest firmware (20140413.) (What do they say about great minds?)
    I thought the issue may have been resolved.
    I was finally able to print my bank statement on both the iMac and MacBook.
    Today, I'm back to the the same issues.
    Very frustrating, even though I've had the printer for five years, I've printed less than 20,000 pages.
    In my mind, it's pointing more and more towards a hardware issue.

  • Unable to print with Adobe Acrobat Pro - latest version 10.1.10

    Hi,
    I have installed Adobe Acrobat Pro on my mac book air version 10.9.2. but am unable to print. When I print a PDF, it shows up in the printer icon as complete but when I go to the printer, nothing is there? Can someone help?

    Hi Frank,
    This type of error usually occurs when two or more than two programs are accessing the same file at a point of time.
    Does this issue occur with that specific pdf or with other pdfs too?
    How about if you make a copy of that pdf and then try deleting pages from that copied pdf? Do let me know if that works.
    If possible...Can you mail me that pdf file at [email protected] so that i can check this issue at my end?
    Regards,
    Rahul

  • Unable to print with new installation of Adobe Reader X

    Yesterday I installed Adobe Reader X on my Dell laptop running Windows XP.  After installing, I was unable to print to a HP Laserjet 4700 printer (only printer I tried).  I rebooted my laptop and tried to repair Adobe Reader and I still can't print.  I uninstalled, rebooted, and re-installed Adobe Reader X and it still won't print. When I click on the print button it just locks up with the hour glass symbol running (only locks up Adobe Reader). I have Adobe Acrobat 9 full version on my computer also and it works fine printing the same documents (a newspaper article without graphics) to the same printer.
    Any ideas what could be happening and how to fix it?

    Ditto on Darrenz16's problem.  New WIN7-64 Home Premiun system with Adobe Reader 10.1.2.  Reads several files, then starts locking up when I try opening new files.  Seems like Reader is failing to release some resource and eventually running out of whatever it is.  Rebooting seems to help temporarily.  Never had this problem on previous systems.  A set of good examples are the .pdf files at the bottom of this page:  http://www.hussman.net/weeklyMarketComment.html
    I can open a few, but then Reader locks up trying to download the files.

  • Photosmart c410 unable to print with Mavericks 10.9.3

    up until the latest Mac OS X update (10.9.3 out May 25th 2014), i was able to print (wireless) without incedent. But since that update, i've been unable to print to that printer.  My wife's HP laptop (running windows 8.1) prints fine to the printer (HP Photosmart c410).  My Macbook Air recognizes the printer and connects without problem but when i go to print, the printer shows "printing...printer in use" but does not awaken the printer.  
    i have no issue printing to my Epson Artisan 810 so suspect the problem lies with a specific driver issue between 10.9.3 and the HP PS c410.  any ideas? (i've deleated and re-added the printer but no change).

    Hi Zedman435,
    Only having the AirPrint driver tells me that there is something missing. Please complete the steps below.  
    Reset Printing System
    Click the Apple icon (   ), and then click System Preferences.
    In the Hardware section, click Print & Fax/Scan. The Print & Fax/Scan  dialog box opens.
    Right-click (or  Ctrl  +click) in the left panel, and then click Reset printing system…
    Click OKto confirm the reset.
    Type the correct Name and Password.
    Click OK to reset the printing system. The Print & Fax dialog box shows no printer selected
    Note: This will remove all printers in the print and Fax/Scan, any printer removed can be re-added later by clicking the plus (+) symbol.
    Repair Disk Permissions
    On the Dock, click Applications, and then click Utilities.
    Double-clickDisk Utility.
    Highlight your hard drive/partition on the left (by default this is "Macintosh HD").
    Click the Repair Disk Permissions button at the bottom of the window.
    Once the repair is complete, restart the computer and download and install the HP Printer Drivers for OS X.
    Now when you add the printer, you should have the HP driver to choose, do not select the AirPrint driver.
    Select Add other Printer or Scanner                                                       
    Select the printer you are adding and next to 'Use' you can the printer driver 
    Please let me know how this works out. Thanks.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Unable to Print with Adobe Reader 9

    I just installed the free Adobe Reader 9. After opening a PDF document and attempted to print, I received an alert from Adobe Reader stating that there are no printers installed.
    This is not the case, there are several network printers installed and I'm able to print to them using other applications, such as Word, Browsers, etc.
    Anyone have any ideas before I uninstall this beast of a reader?
    Thanks!!

    My machine has been fine since I last reinstalled adobe reader 9. Tried to print a large pdf file today from my inbox in outlook express and machine again experienced the same problem. Was not able to open my printer and faxes window and unable to print anything else. I resolved the problem by taking the following actions:
    Opened Administrative tools in control paneland went to Component Services and clicked on Services(local).Scrolled window down to Print spooler and highlighted Print spooler. Tried to Stop the service. After some time received an error 1053 indicating that the service could not be stopped successfully.
    I then Tried to restart the service. This appeared to work correctly. at this point tried to reopen printer and faxes window and could now see my printers briefly before getting error msg indicating spooler problem again. When clicking on my printer icon I could see the document that I had tried to print when I experience the original problem in the printer queue. At this point decided to try and find the file in question. Found a file in C:\windows\system32\spool\printers directory with an filename of xxxxx.spl. This is the spooler print file. I then tried to delete this file but was not allowed to do so by the system. I then used a program called unlocker assistant and deleted the file. Hey presto all printing is now restored and working well again.
    It appears that the spool file generated was corrupted and the spooler could not handle the problem. Am not sure where the problem is created. It could be with adobe 9 or it could be a windows spooler problem.
    Graham Guthrie

  • Unable to print with my Canon PIXMA IP 4700 and JetDirect network appliance

    After many tries I decided to post my question.
    I have a Canon PIXMA IP 4700 connected to the network with a Jetdirect 175X box. So I tried to add a new printer with a "HP Jetdirect Socket" port. I have previously installed the driver from the official website. The test page is staying on the spooler.
    I also tried with LPD port (supported by the Jetdirect box) and IPP but nothing is working.
    When the printer is directly connected with USB, it's working fine. Printing from my others Windows computers is working fine too since many months.
    Thank your for your help.

    Hello and welcome to Apple Discussions.
    Your problem is being caused by the Canon driver. It cannot be used when the printer is connected to the USB port of a 3rd party print server, or if shared by Windows.
    The solution is to use a driver like Gutenprint or PrintFab. Gutenprint is preferred because it is free (it ships with OS X) however the iP4700 is not listed as a supported model. The iP4600 is listed so you could try selecting this model in the Print Using menu (shown as Canon PIXMA iP4600 - Gutenprint v5.2.3). If the iP4600 Gutenprint driver does not work that well then you could look at using [PrintFab|http://www.printfab.net] which does support the iP4700. It costs €49 but there is a 30 day trial so at least you can try it before committing to buying.
    Another option would be to use a Airport device, like the Express, instead of the Jetdirect print server. With the printer connected to its USB port you can then use the Canon iP4700 driver on the Mac.

  • Unable to print with 2 identical printers unless I switch the port setting

    I have 2 identical HP Deskjet 6940 printers
    (I assume they are identical unless there is a way to verify the guts inside or different)
    When ever I want to print to one or the other printer, I have to open into the printer properties and go to Ports and switch between USB001 or USB002.
    I have tried uninstalling the printer driver and reinstalling it as well as letting Windows detect the printer driver, but it still creates another Port and one printer always insists on printing to one particular port and the other printer prints to the other.
    How do I set both printers to print with the same port so I don't have to constantly go into the properties to switch them back again?

    cornpops wrote:
    I have 2 identical HP Deskjet 6940 printers
    (I assume they are identical unless there is a way to verify the guts inside or different)
    When ever I want to print to one or the other printer, I have to open into the printer properties and go to Ports and switch between USB001 or USB002.
    I have tried uninstalling the printer driver and reinstalling it as well as letting Windows detect the printer driver, but it still creates another Port and one printer always insists on printing to one particular port and the other printer prints to the other.
    How do I set both printers to print with the same port so I don't have to constantly go into the properties to switch them back again?
    What is your operating system?  In Vista (and I think XP as well) you can go to the Printers folder, right click on the printer, Run as Admonistrator, Properties, (continue),  Ports, check the "Enable Printer Pooling" then check the boxes for the ports for the two printers.  In this case the print job will be sent to the first one that is available.
    Regards,
    Bob Headrick, Microsoft MVP Printing/Imaging
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Unable to print with Epson 3880 in LR3

    I am no longer able to print with LR3 on my Epson 3880.  I have printed lots of photos on it in the past and when I have tried to print on it in the last few weeks, I go through the normal process on my Mac Pro with Snow Leopard (10.6.8) and everything appears normal.  LR3 processes the photos and the Epson Icon pops up on my task bar and it shows the job as having been completed - but nothing prints.  The computer believes that it has successfully printed my photos. 
    I have tried deleting and adding the printer, but that has not helped.  I have also tested my connection through the Epson Status Monitor.  I can print a test page with that utility and check for the need to clean the print head.  The computer appears to be able to talk to the printer, but it won't print photos.
    One other thing that appears a little unusual is that I can select a specific colour profile to use for my specific photo paper, but I can no longer find the setting in the printer driver that states 'Turn Off Colour Management'.
    I have checked the software update twice and I have the latest updates installed.
    I am stuck and need to print some photos for family.  Any suggestions are appreciated!
    Don

    That is a good tip Andrew.  I believe that the driver was updated in the last couple of months and as I am not printing on a regular schedule, I didn't notice the problem.  With the fresh install from the Epson site, everything looks the way it should.
    I am going to follow your advice and not update via Software Update.  I will install directly from Epson.  This is the first time in three and a half years on the Mac that I have had an issue like this.
    Thanks,
    Don

  • Unable to Print with Adobe Reader....HELP

    When I go to print the dialog box comes up, I select Print and then the Save As box comes up and tries to save in a different format and am unable to print.

    That worked.  Thank you very much. 

  • Unable to print with blue ink

    My 6600 OfficeJet is just over a year old.  It stopped printing with blue ink, affecting photo printing.  I did the "Clean Printhead" function many times, and changed cartridges many times, without success.  Is there a solvent or method to unclog the blue ink?  I have not been able to remove the printhead.  I've tried using a Q-tip and warm water, but nothing so far has worked.  Thanks for any assistance.  I've tried all of the online suggestions so far.

    Check the Canon and OKI printer websites for Mountain Lion driver support. Hopefully you can download the drivers from there.

  • Unable to print with Canon iR2018 after updating OsX Mavericks

    Hi,
    there's anybody who can help me in finding canon ir2018 drivers for osX Mavericks?

    Here is a link to the Canon UFR2 v10.2.0 driver that supports your iR2018 on OS X 10.9.
    Please note that when adding the network printer you must use the LPD protocol and select the correct printer model, which will be listed as "Canon iR2018". Do not select the iR2018 that shows UFR II in the model name as this will be for the older v2.43 driver which is not compatible with OS X 10.9.

  • Unable to Print with HP 4215 and New Extreme N

    Hello:
    I have the new Airport Extreme N, upgraded from the previous Extreme model.
    In the past, I have been able to operate my HP All In One 4215 from the USB port in the back of the Airport.
    With the new N station, I can not.
    In the Airport Utility, it will recognize the printer name.
    Using the 3.x driver, I was able to add the printer, but the print queue would lock up.
    I went to HP and updated the driver to v.4, and it won't let me add the printer at all, giving me a error code.
    I followed the advice of iFelix using the HIJPS drivers via HP IP Socket printing and the computer sends data to the printer but nothing comes out.
    My Extreme is set up as WEP Personal/WEP2.
    I don't want to have to buy a new printer if I don't have to and I assumed that becuase this printer worked with the old station, it would work with the new.
    Printer works great directly connected to the PowerMac.
    If anyone has any advice, please help. I eventually need this printer to work with two wireless macs and one PC laptop.
    Thanks in advance.

    Do you still have the old Extreme base station?
    You could connect the old Extreme to the new Extreme by ethernet and connect the printer to the old Extreme base station, ensuring that IP address distribution is not enabled on the old model.
    iFelix

  • Crm_ml_preview - Unable to print with smartforms with bitmap images.

    I'm using CRM 4.0 and I've an issue on Enterprise Portal when I try to print an Activity.
    In fact, If I press the botton "PRINT" a new window opens with following URL:
    http://myhost:8080/sap/bc/bsp/sa/crm_ml_preview/ml_preview.do? ...
    If the smartform linked, has a bitmap inside (for example the company logo) I receive from this linhk a blank page. If the smartform contain only text, everithing is printed correctly.
    With SAP gui, inside CRM system both smartfoms (with or without bitmaps) are printed correctly. This problems arise only when I try to print the activity from Enterprise Portal.
    Any suggestion to solve the problem?
    Regards
    Luca Sozio.

    It's an HP P3005dn (duplex+network) printer. OS X simply recognized the printer on the network and set itself up accordingly (without the option of selecting PCL or Postscript). The Windows computers in the office, though, - ugh - it was ugly getting them set up. None of them would recognize the printer on the network, and couldn't even browse for it and find it. I wound up having to download Bonjour for windows, and set it up that way. I downloaded the drivers from HP.com, and believe I set them all up to print using PCL.
    It sounds like PCL v. PostScript may be the issue; is it possible to print using PCL on Macs?

  • Unable to print with custom Epson 3880 printer profile (same issue in PS CS6)

    Lightroom 4.4.  Mac OS 10.8.3
    I received 2 custom color profiles and put them into  /Library/ColorSync/Profiles.   From Lightroom Print module, I can bring in these 2 profiles and they can now be choices.  I select one of them as the Color Management Profile in the Print Module and then click the Print button.
    In the dialog box that comes up with all the print choices, under Printer Setting/Advanced Color Settings, it does not display the custom profile I told Lightroom to use.  I also noticed that the profile changed if I changed the Media Type.  I don't want media type of glossy to use Epson's profile, I want it to use the profile I selected from within the Lightroom Print Module.  I want to be able to create new Presets to use the custom profile.
    In the Printer dialog, I also set the Presets to default settings and that does not clear everything like I thought it might.
    Help Help Help 

    MrhoniKeith wrote:
    I received 2 custom color profiles and put them into  /Library/ColorSync/Profiles.   From Lightroom Print module, I can bring in these 2 profiles and they can now be choices.  I select one of them as the Color Management Profile in the Print Module and then click the Print button.
    So far, so good.
    In the dialog box that comes up with all the print choices, under Printer Setting/Advanced Color Settings, it does not display the custom profile I told Lightroom to use.
    If I understand what you're talking about (a screen grab would help), that's fine. There are no ICC profiles to again select. Driver should be set to No Color Adjustment.
    In the Printer dialog, I also set the Presets to default settings and that does not clear everything like I thought it might.
    In LR, you always select Default Settings (not a custom setting) for the driver because LR stores all the pertinent info in the print template. Now if you were printing in say Photoshop, a custom preset would be fine and save you some time in having to always configure the print driver. But not in LR!

Maybe you are looking for