Re: PDF to Tif
Re: PDF to Tif
- Subject: Re: PDF to Tif
- From: kai <email@hidden>
- Date: Wed, 14 Dec 2005 00:14:28 +0000
On 13 Dec 2005, at 19:06, Michelle Steiner wrote:
On Dec 13, 2005, at 11:20 AM, Stockly, Ed wrote:
I'm looking for a scriptable way to convert PDF files to Tiff
images. (Each PDF file is a single page)
I can do both manually via the user interface in either Photoshop
or Acrobat, but neither works via AppleScript.
Any suggestions?
You should be able to do it with image events, I would think.
You think right, Michelle. Here's a short example (which assumes that
existing files have a "pdf" extension):
---------------
set f to choose file of type "com.adobe.pdf"
tell (info for f) to set n to name's text 1 thru -5 & ".tif"
set p to (choose file name default name n) as Unicode text
tell application "Image Events"
launch
tell (open f)
save as TIFF in p
close
end tell
end tell
---------------
If file conversion is carried out in batches, the launch command
should be required only initially. (Image Events evidently quits
after being inactive for 5 minutes.)
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden