• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PDF to Tif
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: PDF to Tif
      • From: Brett Conlon <email@hidden>
References: 
 >PDF to Tif (From: "Stockly, Ed" <email@hidden>)
 >Re: PDF to Tif (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Mail Quits Unexpectedly Using An AppleScript
  • Next by Date: Re: PDF to Tif
  • Previous by thread: Re: PDF to Tif
  • Next by thread: Re: PDF to Tif
  • Index(es):
    • Date
    • Thread