Re: How do you tell Acrobat 7 to print using AS?
Re: How do you tell Acrobat 7 to print using AS?
- Subject: Re: How do you tell Acrobat 7 to print using AS?
- From: Alex Husted <email@hidden>
- Date: Mon, 19 Mar 2007 09:10:17 -0400
- Thread-topic: How do you tell Acrobat 7 to print using AS?
Title: Re: How do you tell Acrobat 7 to print using AS?
Patrik,
To answer your question indirectly, I would suggest that if you are printing PDF files you should do it with shell commands. While it sounds daunting, it is really quite easy and it is also faster processor-wise. The basic structure to use is below. If you want to learn more about all the options of the lpr command, just open a window in the Terminal application and type “man lpr” without the quotes.
Alex
tell application "Finder"
set myPrinter to "print_on_192.100.100.57 " -- name of queue
set thisPath to (quoted form of POSIX path of thisPDF)
set theShell to "lpr -P " & myPrinter & thisPath
do shell script theShell
end tell -- finder
>
> Hi,
>
> Per the dictionairy the following should work but it doesn't why?
>
> tell application "Adobe Acrobat 7.0 Professional"
> print page 1 of document 1 -- or print document 1
> end tell
>
> How can I get Acrobat to just print a file that I have open?
>
> Best, Patrik
>
>
This e-mail and any files transmitted with it are intended solely for
the use of the addressee. This e-mail may contain confidential and/or
legally privileged information. Any review, transmission, disclosure,
copying, or any action taken or not taken, by other than the intended
recipient, in reliance on the information, is prohibited. If you
received this e-mail in error, notify the sender and delete this e-mail
from your computer and network. In addition, please be advised that
Edmund Optics reserves the right to monitor, access and review all
messages, data and images transmitted through our e-mail system. By
using our e-mail system, you consent to this monitoring.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden