Page Setup in Acrobat 6, OS X.3
Page Setup in Acrobat 6, OS X.3
- Subject: Page Setup in Acrobat 6, OS X.3
- From: Christopher MJ Tangora <email@hidden>
- Date: Tue, 11 Nov 2003 14:32:34 -0500
I am trying to figure this out, but am having major difficulties, maybe
someone can shed some light.
What I am trying to do is to specify a specific printer and a specific
page size in Acrobat 6. I am able to set the printer by setting the
default printer through "printer setup utility" and then manually set
the default page size. The only problem is that the page size is then
the default, and all other applications have to go through Page Setup
in order to change the paper size. I would like to find the secret
piece of code that I am missing to set the page setup values, so I can
tell the job to set the page size to "MyOwnSize", but leave the default
at "Letter".
This code is part of a larger script that takes a PDF, makes a new
folder from the file name, splits the PDF while renaming the file to be
compatible with our Ink Delivery System, then prints each page (part
below), then moves the finished files to a separate folder. I've only
enclosed the printing part of the script. Where would I add the page
size? What values do I need to use?
Here is the code I have so far...
--set default printer
tell application "Printer Setup Utility"
if current printer is printer "OM Mac Presset Only Color" then
else
set current printer to printer "OM Mac Presset Only Color"
end if
end tell
-- delay becuase PSU takes a few seconds
delay 1
-- close everything in Acrobat
tell application "Acrobat 6.0 Professional"
close every document saving yes without linearize
end tell
-- opens the document and gets the file name
repeat with i from 1 to pageCount
tell application "Finder"
open file i of destFolder
set filename to (name of file i of destFolder)
end tell
-- prints the document and saves
tell application "Acrobat 6.0 Professional"
-- I think this is where the properties for page setup would go.
print pages document filename first 1 last 1
close document filename saving yes without linearize
end tell
end repeat
Chris Tangora
Desktop Specialist
Production Services
Daytona Beach News-Journal Corporation
Daytona Beach, Florida
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.