• 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: Save EPS page from Acrobat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save EPS page from Acrobat


  • Subject: Re: Save EPS page from Acrobat
  • From: Michael McGonagle <email@hidden>
  • Date: Tue, 16 Nov 2004 12:02:04 -0600

I tried to run this script, and in my tests, I had two different PDF files, one had an icon from Acrobat, and the other had an icon for Preview. When the script processed the Acrobat file, it opened up in Acrobat, but the one from Preview tried to open up in Preview, and the script stops at


save document currentFileName to file EPSFilePath using EPS Conversion


I can only assume that what is happening is that on the


open currentFile


this is somehow passed to Preview instead of Acrobat, as Preview opens up the file, and Script Editor comes up with the error



Acrobat 6.0 Professional got an error: document "BOOK.PDF" doesn't understand the save message.



Or course, the reason I think for this is due to the document opening in Preview. I am running Acrobat 6.0 Professional, might this be a possible cause?


Also, on subsequent runs of the script, it doesn't go through the stuff to allow the selection of folders, and just tries to continue process from where it got the error.

Mike
On Nov 16, 2004, at 9:33 AM, Wadson, David wrote:

property sourceFolder : ""
property processedFolder : ""
property EPSFolder : ""

if sourceFolder is "" then
	set sourceFolder to choose folder with prompt "Pick the PDF
source folder."
end if
if processedFolder is "" then
	set processedFolder to choose folder with prompt "Pick the
folder for processed PDF files."
end if
if EPSFolder is "" then
	set EPSFolder to choose folder with prompt "Pick destination
folder for the EPS files."
end if

tell application "Finder"
	set filesToProcess to every file of sourceFolder whose file type
is "PDF "
end tell
repeat with currentFile in filesToProcess
	set currentFileName to name of currentFile
	set currentFileShortName to characters 1 thru -5 of
currentFileName
	set EPSFileName to (currentFileShortName & ".eps") as string
	set EPSFilePath to (EPSFolder & EPSFileName) as string
	tell application "Acrobat 6.0.1 Professional"
		open currentFile
		save document currentFileName to file EPSFilePath using
EPS Conversion
		close document currentFileName
	end tell
	tell application "Finder"
		move currentFile to processedFolder with replacing
	end tell

end repeat


_______________________________________________
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: Save EPS page from Acrobat
      • From: Brendan <email@hidden>
References: 
 >Re: Save EPS page from Acrobat (From: "Wadson, David" <email@hidden>)

  • Prev by Date: Re: Fonts in InDesign CS
  • Next by Date: RE: Save EPS page from Acrobat
  • Previous by thread: Re: Save EPS page from Acrobat
  • Next by thread: Re: Save EPS page from Acrobat
  • Index(es):
    • Date
    • Thread