It's easier to export the dataset to XML with the Export Metadata element and then use Saxon and XSLT to construct the XML-file you want.
Just my $0.02
Jan
Search found 607 matches
- Fri Mar 25, 2016 9:24 am
- Forum: LEGACY scripting
- Topic: XML From Scratch : SOLVED
- Replies: 3
- Views: 6329
- Wed Mar 23, 2016 5:51 pm
- Forum: LEGACY scripting
- Topic: Scripted ShellScript won't run
- Replies: 5
- Views: 4932
Re: Scripted ShellScript won't run
Yes I had it set to job.sendToSingle(tempfile)
But there were some other stuff going on there and Jonas at the support helped me get it to work, even for him it was a challenge
Thanks
Jan
But there were some other stuff going on there and Jonas at the support helped me get it to work, even for him it was a challenge
Thanks
Jan
- Fri Mar 18, 2016 3:17 pm
- Forum: LEGACY scripting
- Topic: Scripted ShellScript won't run
- Replies: 5
- Views: 4932
Re: Scripted ShellScript won't run
Well, working some more with this flow and script there is still a problem with the resulting PDF that PDFtk generates from the Shellscript. Switch will not write the resulting file to the output folder. I get no errors in the log, it just don't output the file. I suspect that there is some permissi...
- Fri Mar 18, 2016 2:03 pm
- Forum: LEGACY scripting
- Topic: Scripted ShellScript won't run
- Replies: 5
- Views: 4932
Re: Scripted ShellScript won't run
Thanks that solved it!
Jan
Jan
- Thu Mar 17, 2016 11:05 am
- Forum: LEGACY scripting
- Topic: Scripted ShellScript won't run
- Replies: 5
- Views: 4932
Scripted ShellScript won't run
I have made a script that creates a ShellScript file with commands for PDFToolkit. In this way I can use SwitchVariables for the PDFTK command. My problem is that this .sh file that Switch generates will not run, I get error [255] in Switch from the ExecuteCommand. If I try to run the same script in...
- Thu Mar 17, 2016 10:58 am
- Forum: LEGACY scripting
- Topic: Saxon to save multiple node XML
- Replies: 1
- Views: 2892
Re: Saxon to save multiple node XML
Try this
Jan
Code: Select all
<xsl:result-document method="xml" href="{item/@LineNumber}.xml">
Jan
- Tue Mar 08, 2016 3:34 pm
- Forum: Flows
- Topic: Assemble Job variable number of files
- Replies: 12
- Views: 12259
Re: Assemble Job variable number of files
Thanks Loic, that sounds like a good idea. Gabriel, the input to the flow is one Excel-file with a number of records. Each record becomes a single XML that then is imported to InDesign to produce single PDF's. The number of single PDF's can be different from each Excel-file and they later has to be ...
- Tue Mar 08, 2016 3:29 pm
- Forum: Flows
- Topic: Using ImageMagick with Switch
- Replies: 4
- Views: 19571
Re: Using ImageMagick with Switch
ImageMagick is commonly used in Switch by many users. You also normally get GhostScript installed together with ImageMagick and that is the best way to convert PDF's to imageformats. The PDF will then be "Ripped" by GhostScript and you will have a lot of options on how the image should be ...
- Sun Mar 06, 2016 5:49 pm
- Forum: Flows
- Topic: Assemble Job variable number of files
- Replies: 12
- Views: 12259
Assemble Job variable number of files
I working on a flow were there are a number of files in a job that needs to be assembled for a PDF-merge. The number of files varies since they are created by importing XML to InDesign. Each job has a different number of files. How can I get the number of files? I was thinking of some kind of counte...
- Fri Feb 26, 2016 11:48 pm
- Forum: LEGACY scripting
- Topic: QR Code create
- Replies: 2
- Views: 4249
Re: QR Code create
You can use a command line tool named "qrencode" that you run in the Execute Command element. You need a proper formated textfile for qrencode to process and it will save an .eps as a QR Code.
You will find it here: https://fukuchi.org/works/qrencode/
Jan
You will find it here: https://fukuchi.org/works/qrencode/
Jan
- Mon Nov 02, 2015 2:31 pm
- Forum: Applications
- Topic: PDF Toolkit and El Capitan
- Replies: 0
- Views: 4494
PDF Toolkit and El Capitan
For your Information PDFToolkit doesn't work with El Capitan, Apple has done some changes that affects PDFToolkit. If you have PDFTK in your flow the files will stop in the folder before the Execute Command element and sort of hangs. To close the flow you have to kill the PDFTK in Activity Monitor. ...
- Sat Sep 12, 2015 11:24 am
- Forum: Applications
- Topic: Switch variables in Pythonscript
- Replies: 3
- Views: 8774
Re: Switch variables in Pythonscript
Thanks Ben,
- Wed Aug 26, 2015 1:24 pm
- Forum: Applications
- Topic: Switch variables in Pythonscript
- Replies: 3
- Views: 8774
Switch variables in Pythonscript
Maybe this should go in the scripting group. I'm trying to run an Executable Command configurator with a Python script that will convert .CSV to .XML In this Python script it call for the input file and the output file. If I hard code that to file and paths it works running in Switch. But if I repla...
- Tue May 27, 2014 7:00 pm
- Forum: LEGACY scripting
- Topic: Help with created file extension
- Replies: 7
- Views: 9177
Help with created file extension
I found it. I hadn't specified the Var InputJob.
Now it works.
Jan
Now it works.
Jan
- Tue May 27, 2014 5:04 pm
- Forum: LEGACY scripting
- Topic: Help with created file extension
- Replies: 7
- Views: 9177
Help with created file extension
I tried those two lines and with the "job.sendToSingle(InputJob);" the Script doesn't execute. The input job file is waiting in the folder before the Script Element. Here is my script // Is invoked each time a new job arrives in one of the input folders for the flow element. // The newly a...