Search found 655 matches

by dkelly
Thu Jun 18, 2020 11:02 pm
Forum: LEGACY scripting
Topic: Looking for Workflow Engineer for Switch Implementation
Replies: 2
Views: 482

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: 9
Views: 1219

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

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]' was evaluated to '123...
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: 1255

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: 9
Views: 1219

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

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

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

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

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

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

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", weekN...
by dkelly
Mon Jul 16, 2018 11:20 pm
Forum: LEGACY scripting
Topic: Merge CSV files in a folder
Replies: 4
Views: 3508

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.
by dkelly
Thu Jul 12, 2018 12:07 am
Forum: Applications
Topic: CSV lookup - Variable in CSV filename
Replies: 4
Views: 3285

Re: CSV lookup - Variable in CSV filename

Are you storing the value in private data, metadata?

private data would look something like:
[Job.PrivateData:Key="filename"]

and metadata:
[Metadata.Text:Path="/mydata/filename"]
by dkelly
Wed Jul 11, 2018 5:05 pm
Forum: Applications
Topic: CSV lookup - Variable in CSV filename
Replies: 4
Views: 3285

Re: CSV lookup - Variable in CSV filename

For "CSV file" property choose "Define single text with variables" and then enter the variable you want to use for the CSV filename.
by dkelly
Wed Jun 20, 2018 3:57 pm
Forum: LEGACY scripting
Topic: Switch scripting and advanced topics class @ Print '18
Replies: 1
Views: 2288

Switch scripting and advanced topics class @ Print '18

Apago will be holding a full day hands-on seminar on JavaScript and advanced concepts during Print 18 in Chicago. We had great feedback from last 4 seminars and will be incorporating more hands-on exercises. Bring your list of questions and requirements and we will work through them. Date: Tuesday, ...