Search found 658 matches

by dkelly
Mon Jan 29, 2024 10:28 pm
Forum: PitStop Pro
Topic: Stroke page box?
Replies: 2
Views: 507

Stroke page box?

How can I draw a stroke of the rectangle of a page box, eg. media box?
by dkelly
Mon Aug 31, 2020 7:15 pm
Forum: Node.js scripting
Topic: Set PrivateData in a Function
Replies: 1
Views: 4488

Re: Set PrivateData in a Function

async job.setPrivateData( tag: String, value: String )
by dkelly
Mon Aug 31, 2020 6:59 pm
Forum: Node.js scripting
Topic: NodeScriptExecutor.js.map
Replies: 10
Views: 15623

Re: NodeScriptExecutor.js.map

Sunnyland wrote: Fri Aug 21, 2020 8:03 am ENOENT: no such file or directory, open 'c:\Program Files\Enfocus\Enfocus Switch\ScriptExecutor\NodeScriptExecutor.js.map'
The source map file (.map) contains debugger information. It's optional and the warning can be ignored.

I doubt the Enfocus wants to disclose the source code to that script.
by dkelly
Thu Jun 18, 2020 11:02 pm
Forum: LEGACY scripting
Topic: Looking for Workflow Engineer for Switch Implementation
Replies: 2
Views: 5627

Re: Looking for Workflow Engineer for Switch Implementation

I'd be happy to discuss your project requirements. I have extensive experience with design and implementation of complex workflows in Switch.

Dwight Kelly
dkelly@apago.com
+1 770-619-1884
by dkelly
Wed Jun 17, 2020 4:44 pm
Forum: Node.js scripting
Topic: New scripting engine in Switch 2020
Replies: 10
Views: 25866

Re: New scripting engine in Switch 2020

Can you post your Javascript code?
by dkelly
Mon Jun 08, 2020 5:44 pm
Forum: LEGACY scripting
Topic: How can I access metadata in a script?
Replies: 3
Views: 7106

Re: How can I access metadata in a script?

Your code looks correct. I was able to retrieve values from the XML. Are you sure that you have 'picked up' the metadata and the dataset name is Order? <?xml version="1.0" encoding="UTF-8"?> <order> <id>123</id> <reference>abc</reference> </order> The variable '[Metadata.Text]' w...
by dkelly
Mon Jun 08, 2020 5:37 pm
Forum: LEGACY scripting
Topic: List Files from a Google Drive using the GDrive API
Replies: 1
Views: 7003

Re: List Files from a Google Drive using the GDrive API

I'm confused because your code contains 2 jobArrived functions. In the code below you aren't calling a HTTP function for your API call to /files endpoint. According to documentation is uses the GET verb. In the other jobArrived() you were calling POST not GET. var theHTTP = new HTTP( HTTP.SSL ); the...
by dkelly
Mon Jun 08, 2020 5:18 pm
Forum: Node.js scripting
Topic: New scripting engine in Switch 2020
Replies: 10
Views: 25866

New scripting engine in Switch 2020

I gave a presentation on the new node.js scripting engine that will be released with Switch 2020. https://www.enfocus.com/en/virtual-safari/a-tour-of-the-new-switch-scripting-engine We are looking for a few pilot projects using node.js and Switch. Please contact me if you have an idea or an actual p...
by dkelly
Mon Sep 23, 2019 4:18 pm
Forum: LEGACY scripting
Topic: Switch scripting & advanced topics class 2019
Replies: 0
Views: 10198

Switch scripting & advanced topics class 2019

For the last 5 years Apago has held a full day hands-on class on Switch JavaScript scripting and advanced concepts during Print show. We have had great feedback from the attendees. This year we are considering holding the class during the Printing United show in Dallas Texas - Oct. 23–25, 2019. If y...
by dkelly
Tue Sep 11, 2018 8:17 pm
Forum: LEGACY scripting
Topic: Info from unknown XML
Replies: 3
Views: 8314

Re: Info from unknown XML

Using XPath

1. returns count of Kind elements
count(//Kind)

2. returns individual quantity values
//Kind/Quantity/text()
by dkelly
Tue Aug 14, 2018 5:08 pm
Forum: LEGACY scripting
Topic: Switch scripting and advanced topics class @ Print '18
Replies: 1
Views: 6066

Re: Switch scripting and advanced topics class @ Print '18

Seats are selling out fast. Make sure you purchase a ticket @ https://www.brownpapertickets.com/event/3587110
by dkelly
Wed Aug 08, 2018 5:00 pm
Forum: LEGACY scripting
Topic: Auto number a list from metadata
Replies: 3
Views: 8260

Re: Auto number a list from metadata

Can you give us a little more information?

It appears that the incoming job has an XML attached as metadata. You locating the individual items by splitting on "<BR>" element.

What element are you using the variable? In a script or Condition with variables?
by dkelly
Fri Jul 20, 2018 4:14 pm
Forum: LEGACY scripting
Topic: Switch Scripting Training
Replies: 4
Views: 10894

Re: Switch Scripting Training

Hello, please see my post in this forum titled "Switch scripting and advanced topics class @ Print '18" for more information.
by dkelly
Mon Jul 16, 2018 11:35 pm
Forum: LEGACY scripting
Topic: Week number to Private data
Replies: 4
Views: 8844

Re: Week number to Private data

In script function getWeekNumber(d) { d.setDate(d.getDate() + 4 - (d.getDay()||7)); var yearStart = new Date(d.getYear(),1,1); var weekNo = Math.ceil(( ( (d.getTime() - yearStart.getTime()) / 86400000) + 1)/7); return weekNo; } var weekNo = getWeekNumber(new Date()); job.setPrivateData("week&qu...
by dkelly
Mon Jul 16, 2018 11:20 pm
Forum: LEGACY scripting
Topic: Merge CSV files in a folder
Replies: 4
Views: 9907

Re: Merge CSV files in a folder

If you need a more advanced CSV merge solution contact sales@apago.com for information about our collection of CSV utilities for Switch.