Search found 276 matches

by sander
Fri Apr 19, 2024 12:05 pm
Forum: Switch
Topic: Search for Flows in Designer
Replies: 4
Views: 89

Re: Search for Flows in Designer

I have been using Switch for so long now that I think I've become a bit set in my ways in some things. I just noticed this haha :mrgreen:

Both json pickups are found this way, enable names and values at the bottom:
Image
by sander
Fri Apr 19, 2024 10:54 am
Forum: Switch
Topic: Search for Flows in Designer
Replies: 4
Views: 89

Re: Search for Flows in Designer

I'm using the notepad++ method too, however not with the html files. Instead I search the flow xml's.

Not the most elegant way, but using this trick for some time now :)

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

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: 9722

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: 23128

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 23112 times
Via Switch:
switch3.png
switch3.png (19.33 KiB) Viewed 23112 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: 23128

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 23120 times
by sander
Wed Oct 25, 2023 10:43 am
Forum: Node.js scripting
Topic: Update Values in xml files
Replies: 5
Views: 9722

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: 7342

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 6579 times
by sander
Thu Jul 07, 2022 6:14 pm
Forum: PitStop Pro
Topic: Trimbox value in "variable value".
Replies: 2
Views: 2657

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: 25107

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: 16998

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: 9852

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: 9852

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: 11976

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: 6406

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...