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
InDesign Smartstream Create Job Script
Re: InDesign Smartstream Create Job Script
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):
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:
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
"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");
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>

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
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.
Chat: open-automation @ gitter
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.
Chat: open-automation @ gitter
Re: InDesign Smartstream Create Job Script
Thanks for the info, I will have a test for this
Re: InDesign Smartstream Create Job Script
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
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
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
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
-
- Newbie
- Posts: 7
- Joined: Mon Nov 04, 2024 11:14 am
- Location: India
- Contact:
Re: InDesign Smartstream Create Job Script
To automate the process, you can try creating a script that monitors the folder for the incoming XML files. Once the XML is detected, you can trigger the SmartStream CreateJob function.