🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
4 messages
4 total messages Started by Bertus_Bolknak Thu, 22 Jan 2009 19:35
Export PDF Workflow with Applescript and CS3
#1984
Author: Bertus_Bolknak
Date: Thu, 22 Jan 2009 19:35
18 lines
1722 bytes
Hello,

I am setting up some PDF workflow with Applescript.

On a given moment, as my script runs and after getting some user-input answers to questions in some dialogs, my script tells InDesign CS3 to open the Export Adobe PDF window for the current document. I copied and pasted that small part of the script:

tell application "Adobe InDesign CS3"
	tell document 1
		export format PDF type to "Macintosh_HD:Test01.pdf" using "somePreset" with showing options
	end tell
end tell

When you run this small part of my Applescript, InDesign opens the Export Adobe PDF window (as expected) waiting for me to click on "Export". That is exactly what I want, since the user is given here a last opportunity to change some values (for example page range, or spreads). When all is set, the user can click on Export to close the dialog and finish the script.

Problem: I was hoping that the Adobe PDF Preset "somePreset" would be selected in the first pull-down menu of the Export Adobe PDF window when this window is opened by the script. Unfortunately the last used preset is always selected by default. Anyone suggestions or help?

Kind regards,
Bertus Bolknak.
Re: Export PDF Workflow with Applescript and CS3
#1985
Author: Karen_S_Nielsen
Date: Thu, 22 Jan 2009 20:05
7 lines
1101 bytes
You could try adding this prior to your tell document statement:

		set theProps to properties of PDF export preset "[Press Quality]"

Just replace "[Press Quality]" with "somePreset"

Rather than showing options, I have a dialog box that operators use to set certain things in the export box. The chose they options they want and then I build the preset based on that. Works well. Then they don't have access to everything. Only what I want them to have access to.
Re: Export PDF Workflow with Applescript and CS3
#1989
Author: Bertus_Bolknak
Date: Thu, 22 Jan 2009 20:36
6 lines
955 bytes
Hello Karen, thank you for your answer.
Which questions exactly do you ask the operators of your script? Things like page range, color profile (paper type), I guess?
Do you have just one PDF preset that will be edited by the script only on a few places, based on the answers of the operator?

Kind regards,
Bertus Bolknak.
Re: Export PDF Workflow with Applescript and CS3
#1990
Author: Karen_S_Nielsen
Date: Thu, 22 Jan 2009 21:53
17 lines
1877 bytes
My operators enter the page range and filename into a dialog box. Then I set those in the script. I use the Press Quality preset to start with and then set the changes I want into a export variable. I set things like bleed, marks, page range, etc.

Here is an example:

				set theProps to properties of PDF export preset "[Press Quality]"
				try
					delete PDF export preset "Schmidt PDF"
				end try
				set theStyle to {name:"Schmidt PDF", acrobat compatibility:acrobat 7, bleed top:"0.125i", bleed bottom:"0.125i", bleed inside:"0.125i", bleed outside:"0.125i", page marks offset:"0.125i", include ICC profiles:Include None, effective PDF destination profile:use no profile, effective PDF X profile:"No Color Conversion"} & theProps
				make PDF export preset with properties theStyle
				set properties of PDF export preferences to theStyle
				set color bitmap sampling of PDF export preferences to none
				set grayscale bitmap sampling of PDF export preferences to none
				set page range of PDF export preferences to (item i of myPageList) as string
				export document 1 format PDF type to (PrinergyFolder & myJobNumFinal & "_" & VerCode & ".pdf") as Unicode text without showing options

I am also doing this in Quark.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads