• 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
PDF opening in Preview (was Save EPS page from Acrobat)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PDF opening in Preview (was Save EPS page from Acrobat)


  • Subject: PDF opening in Preview (was Save EPS page from Acrobat)
  • From: "Wadson, David" <email@hidden>
  • Date: Tue, 16 Nov 2004 19:55:40 -0500

Thanks to Shane Stanley, who's going to demonstrate a way to ensure that the
PDF opens in Acrobat and not Preview. :-)



-- Begin heavily chopped script

tell application "Finder"
	set filesToProcess to every file of sourceFolder whose file type is
"PDF "
end tell

repeat with currentFile in filesToProcess
	tell application "Acrobat 6.0.1 Professional"
		open currentFile
	end tell
end repeat

-- End heavily chopped script


Dave




--Begin unchopped, messy script.

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: PDF opening in Preview (was Save EPS page from Acrobat)
      • From: "Shane Stanley" <email@hidden>
  • Prev by Date: Re: Error -43 when attempting to write to file
  • Next by Date: Re: Error -43 when attempting to write to file
  • Previous by thread: Re: can't make droplets with Script Debugger
  • Next by thread: Re: PDF opening in Preview (was Save EPS page from Acrobat)
  • Index(es):
    • Date
    • Thread