Re: Quietly Distill a file
Re: Quietly Distill a file
- Subject: Re: Quietly Distill a file
- From: kai <email@hidden>
- Date: Mon, 2 Apr 2007 20:27:11 +0100
On 2 Apr 2007, at 01:22, Brett Conlon wrote:
I'd like to distill a file without Distiller having to launch. You
can print to PDF and Distiller doesn't run, it uses the
Distillerintf process. How can I tap into this or similar to have
it produce the PDF "silently"?
Not sure if something like this will do exactly what you want, Coj -
but you might like to play around with it:
---------------
set f to choose file with prompt ¬
"Choose an EPSF file:" of type "EPSF" without invisibles
set {name:n, name extension:{length:e}} to info for f
if e is 0 then set n to n & "."
set n to n's text 1 thru -(e + 1) & "pdf"
set p to choose file name default name n default location f ¬
with prompt "Choose a PDF name and location:"
do shell script "pstopdf " & quoted form of f's POSIX path & ¬
" -o " & quoted form of p's POSIX path
---------------
---
kai
_______________________________________________
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