InDesign Smartstream Create Job Script

Post Reply
liechie
Newbie
Posts: 7
Joined: Thu Aug 17, 2017 2:47 pm

InDesign Smartstream Create Job Script

Post 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
sander
Advanced member
Posts: 276
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: InDesign Smartstream Create Job Script

Post 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
liechie
Newbie
Posts: 7
Joined: Thu Aug 17, 2017 2:47 pm

Re: InDesign Smartstream Create Job Script

Post by liechie »

Thanks for the info, I will have a test for this
liechie
Newbie
Posts: 7
Joined: Thu Aug 17, 2017 2:47 pm

Re: InDesign Smartstream Create Job Script

Post 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
cstevens
Member
Posts: 103
Joined: Tue Feb 12, 2013 8:42 pm

Re: InDesign Smartstream Create Job Script

Post 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?
liechie
Newbie
Posts: 7
Joined: Thu Aug 17, 2017 2:47 pm

Re: InDesign Smartstream Create Job Script

Post 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
sander
Advanced member
Posts: 276
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: InDesign Smartstream Create Job Script

Post by sander »

That's what the SmartStream VDP Configurator in Switch can do.

Did you try that one?

Image
liechie
Newbie
Posts: 7
Joined: Thu Aug 17, 2017 2:47 pm

Re: InDesign Smartstream Create Job Script

Post 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
sander
Advanced member
Posts: 276
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: InDesign Smartstream Create Job Script

Post 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 :)
liechie
Newbie
Posts: 7
Joined: Thu Aug 17, 2017 2:47 pm

Re: InDesign Smartstream Create Job Script

Post 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?
sander
Advanced member
Posts: 276
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: InDesign Smartstream Create Job Script

Post 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.
liechie
Newbie
Posts: 7
Joined: Thu Aug 17, 2017 2:47 pm

Re: InDesign Smartstream Create Job Script

Post by liechie »

what I'm trying to figure out now is, does the InDesign SmartStream is scriptable? also I can't find any syntax
Post Reply