PDF opening in Preview (was Save EPS page from Acrobat)
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