Search found 274 matches

by sander
Wed Mar 06, 2024 3:04 pm
Forum: PitStop Pro
Topic: Acrobat Update 2023.008.20533
Replies: 16
Views: 961

Re: Acrobat Update 2023.008.20533

Am I missing a check mark? I have disabled all automatic updates for Adobe, in the CC Application and Acrobat Pro itself! And Acrobat was updated this morning to version 2023.008.20555! I really double checked everything after the rollback to version 2023.008.204xx!!! I had the same problem a coupl...
by sander
Wed Oct 25, 2023 2:28 pm
Forum: Node.js scripting
Topic: Update Values in xml files
Replies: 5
Views: 8846

Re: Update Values in xml files

Great :)

Just to be sure you know this: Switch XSLT transform only supports XSLT 1.0.

If you go with the Saxonica Saxon configurator you can use 2.0 and 3.0 too:
https://www.enfocus.com/en/appstore/pro ... nica-saxon
by sander
Wed Oct 25, 2023 2:20 pm
Forum: Preflighting
Topic: Using Submit Metadata in Pitstop Varibale Set
Replies: 7
Views: 20041

Re: Using Submit Metadata in Pitstop Varibale Set

Do you open the variable set via Switch or directly via PitStop server?

PitStop server:
switch2.png
switch2.png (21.11 KiB) Viewed 20025 times
Via Switch:
switch3.png
switch3.png (19.33 KiB) Viewed 20025 times
Notice the difference? :)
by sander
Wed Oct 25, 2023 2:01 pm
Forum: Preflighting
Topic: Using Submit Metadata in Pitstop Varibale Set
Replies: 7
Views: 20041

Re: Using Submit Metadata in Pitstop Varibale Set

This is the way.

1+2. Select your Variable Set.
3. Go with Text with Variables.
4+5. Define your Switch variable over here.
switch1.png
switch1.png (133.4 KiB) Viewed 20033 times
by sander
Wed Oct 25, 2023 10:43 am
Forum: Node.js scripting
Topic: Update Values in xml files
Replies: 5
Views: 8846

Re: Update Values in xml files

I would go with Saxon and an xslt: Input: <order> <jobs> <job> <jobID>A</jobID> <fileName>*/abcdef.pdf</fileName> </job> <job> <jobID>B</jobID> <fileName>*/abcdef.pdf</fileName> </job> </jobs> </order> XSLT: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="3.0...
by sander
Fri Oct 20, 2023 4:45 pm
Forum: Switch
Topic: HTTP request POST
Replies: 4
Views: 6375

Re: HTTP request POST

I intended to ask a similar question and found this article. Can anyone tell me how to use that json file after creating a json file?
This will do:
pic.png
pic.png (30.79 KiB) Viewed 5612 times
by sander
Thu Jul 07, 2022 6:14 pm
Forum: PitStop Pro
Topic: Trimbox value in "variable value".
Replies: 2
Views: 2510

Re: Trimbox value in "variable value".

Coincidentally, I was playing around with something like this last week. Create a variable set. Acrobat -> PitStop Pro -> Variable Sets -> Variable Set Preferences... https://i.imgur.com/c0ybESQ.png 1. Enable Variable Names 2. Click this blue thing to select the Variable Set https://i.imgur.com/V8it...
by sander
Fri Aug 21, 2020 10:40 am
Forum: LEGACY scripting
Topic: XML-path to string
Replies: 14
Views: 24887

Re: XML-path to string

Escape your " with \ like this

Code: Select all

var xml = job.getVariableAsString("[Metadata.Text:Path=\"/lieferung/\",Dataset=\"Xml\",Model=\"XML\"]");
by sander
Wed Aug 12, 2020 10:30 am
Forum: Flows
Topic: Best way to delete files in a folder older then X?
Replies: 12
Views: 16752

Re: Best way to delete files in a folder older then X?

You might be interested in my approach with Powershell which supports UNC paths. Fire up via execute command: $paths = @( ("d:\sftp\sander\nl"), ("d:\sftp\sander\de") ) foreach ($path in $paths) { $limit = (Get-Date).AddDays(-7) Get-ChildItem $path -Recurse | ? { -not $_.PSIsCon...
by sander
Fri Mar 06, 2020 10:42 am
Forum: LEGACY scripting
Topic: Get part of an API Response(JSON)
Replies: 6
Views: 9736

Re: Get part of an API Response(JSON)

Define your var outside your function or use return?
by sander
Fri Mar 06, 2020 9:14 am
Forum: LEGACY scripting
Topic: Get part of an API Response(JSON)
Replies: 6
Views: 9736

Re: Get part of an API Response(JSON)

Code: Select all

try {
	jsonReturn = JSON.parse(theHttp.getServerResponse().toString('UTF-8'));
	log(2, jsonReturn.id);
} catch(theError) {
	log(2,'json parse error: ' +theError);
}
Something like this I think :)
by sander
Thu May 02, 2019 12:45 pm
Forum: Imposition
Topic: Imposing Smartstream Production Pro Print server
Replies: 2
Views: 11403

Re: Imposing Smartstream Production Pro Print server

First of all. Don't take all DFE errors/warning seriously. This is my auto-impose 2up ticket template. It's for papersize 320x460 on a Indigo 7x00. Let's take a look at the default paper size and image size values.. https://i.imgur.com/rwdGehH.png > You are not able to add a custom ticket template w...
by sander
Fri Mar 01, 2019 5:10 pm
Forum: LEGACY scripting
Topic: xml & xsl to PDF file
Replies: 2
Views: 6357

Re: xml & xsl to PDF file

As far as I know there's no html when you open a xml with a xsl. It looks nicely formatted from within a browser but that's it, it's still xml. Try Saxon, there's a configurator for that one, and set the according stylesheet. I'm wondering what the output of this is, after we can see what to do with...
by sander
Thu Feb 28, 2019 4:12 pm
Forum: Flows
Topic: Network paths (Switch on Windows)
Replies: 4
Views: 8237

Re: Network paths (Switch on Windows)

I agree ;)
by sander
Wed Feb 27, 2019 6:08 pm
Forum: LEGACY scripting
Topic: JSON with special characters
Replies: 8
Views: 16207

Re: JSON with special characters

Now I’m thinking of it, try this header, might work:
Content-Type: application/json;charset=utf-8