Page 1 of 1

InDesign Smartstream Create Job Script

Posted: Thu Aug 17, 2017 2:55 pm
by liechie
Hi,

Is there a way to create job in InDesign Smartstream Create Job Script using javascript?

SmartStream> CreateJob ( image below )

https://ibb.co/ggcQ7F

Thank you in advance

Re: InDesign Smartstream Create Job Script

Posted: Thu Aug 17, 2017 3:43 pm
by sander
I did some findings while using Switch the last years, I'm not into InDesign javascript but I bet it can help you to get in the right direction.

"I think":
In the folder %userprofile%\Documents\Adobe Scripts there's a jsx file created when a new job arrives at the configurator.

impp.jsx in that folder (theres a vdp.jsx too):

Code: Select all

#target InDesign-11.064
app.createJob("C:/Users/admin-wihabo/AppData/Roaming/SmartStream Configurators/IMPP/MB_404-1119-tempXML.xml");
So it looks like you need to supply a xml for this, if you are quick you can catch the temporary xml when it enters the configurator, I did for you:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<ScriptParams version="SmartStream Designer v5.5">
	<InputPDFFiles>
		<File path="D:\SwitchData\backing\4) PDF\automanaged\Asset#2\_1C567_MB_404-1119.pdf"/>
	</InputPDFFiles>
	<Parameter ParamName="ImpositionTemplateFile" ParamValue="C:\Users\admin-wihabo\Documents\SmartStream Designer\Imposition\210x100_4x_duplex.impp"/>
	<Parameter ParamName="CropTo" ParamValue="0"/>
	<Parameter ParamName="JobOutputDir" ParamValue="C:\Users\admin-wihabo\AppData\Roaming/SmartStream Configurators/IMPP/"/>
	<Parameter ParamName="JobOutputName" ParamValue="MB_404-1119-imposed"/>
	<Parameter ParamName="JobOutputFormat" ParamValue="PDF"/>
	<Parameter ParamName="JobOutputType" ParamValue="Rich"/>
	<Parameter ParamName="PDFPreset" ParamValue="Wihabo druk pms geen snijtekens"/>
	<Parameter ParamName="PaperSize" ParamValue="458x318"/>
	<Parameter ParamName="JobStatusFile" ParamValue="C:\Users\admin-wihabo\AppData\Roaming/SmartStream Configurators/IMPP/MB_404-1119.xml"/>
</ScriptParams>
So if you can create a correct SmartStream xml file you can javascript create job ;)

I would look for a xml file in a temporary location when you hit create job, maybe you don't have to read the manual then :)

Hope it helps,

Sander

Re: InDesign Smartstream Create Job Script

Posted: Thu Aug 17, 2017 3:54 pm
by liechie
Thanks for the info, I will have a test for this

Re: InDesign Smartstream Create Job Script

Posted: Thu Aug 17, 2017 4:43 pm
by liechie
Sorry but Im just a novice in js InDesign and I can't convert this into Indesign js but still thanks for looking into it

Re: InDesign Smartstream Create Job Script

Posted: Thu Aug 17, 2017 4:59 pm
by cstevens
That's basically what the HP SmartStream Designer VDP Configurator does. Is there something you want to do that can't be handled by the configurator?

Re: InDesign Smartstream Create Job Script

Posted: Fri Aug 18, 2017 8:17 am
by liechie
This is how it goes.

Everyday, I'm processing for about 20 to 30 projects that consist VDP on it.

it is like SmartStream> CreateJob> choose jlyt:Last to first then SmartStream> CreateJob> choose pdf

I'm hoping to automate the process using script if it is doable

thank you

Re: InDesign Smartstream Create Job Script

Posted: Tue Aug 22, 2017 11:26 am
by sander
That's what the SmartStream VDP Configurator in Switch can do.

Did you try that one?

Image

Re: InDesign Smartstream Create Job Script

Posted: Thu Aug 24, 2017 8:22 am
by liechie
Hi All,

Thanks for having time looking into this.

I'm not using switch due to this reason:

Every job that I'm doing have different data list also different artwork and different location. That's why I manually placing it on InDesign.

I'm just wondering if creating job on InDesign SmartStream is scriptable like exporting pdf

thanks a lot guys

Re: InDesign Smartstream Create Job Script

Posted: Thu Aug 24, 2017 11:52 am
by sander
Every job that I'm doing have different data list also different artwork and different location.
I create thousands of jobs in the VDP configurator with different artwork and such. E.g. for one customer I place two pdf's and do variable data with a supplied csv, so unique artwork and variable data for each job.

What's your use case? I bet it can be done simpler instead of reverse engineering the SmartStream configurators :)

Re: InDesign Smartstream Create Job Script

Posted: Thu Aug 24, 2017 4:10 pm
by liechie
I create thousands of jobs in the VDP configurator with different artwork and such. E.g. for one customer I place two pdf's and do variable data with a supplied csv, so unique artwork and variable data for each job.
do you do this on switch?

Re: InDesign Smartstream Create Job Script

Posted: Thu Aug 24, 2017 5:25 pm
by sander
Yes sir. But I had to do some creative thinking to workaround some limitations. Probably the same as you come across now :)

Again, what's your exact case. I'm sure we can figure it out.

Re: InDesign Smartstream Create Job Script

Posted: Fri Aug 25, 2017 8:25 am
by liechie
what I'm trying to figure out now is, does the InDesign SmartStream is scriptable? also I can't find any syntax