Search found 7 matches

by sgeller
Tue Nov 26, 2013 6:43 pm
Forum: Scripting
Topic: Outgoing Connection path in javascript.
Replies: 2
Views: 1360

Outgoing Connection path in javascript.



Is there a way to get the path for an outgoing connection?



I've been able to use s.getOutConnections().getItem(0).getFolderName() to get the name of the folder, but can't seem to find a way to get a full path for the folder.
by sgeller
Mon Nov 25, 2013 7:59 pm
Forum: Scripting
Topic: Breaking up an XML
Replies: 2
Views: 1422

Breaking up an XML

Our usual flows are one XML and a PDF that were able to use XML Pickup with. We now have a client suppling our order info as a single XML that refers to several PDFs. Is there a way to have switch pluck out the multiple orders and write the separate XML files where the PDFs will be waiting? <?xml ve...
by sgeller
Wed Nov 14, 2012 10:23 pm
Forum: Preflighting
Topic: Stuffit files
Replies: 2
Views: 3487

Stuffit files

Is there some trick getting switch to uncompress Stuffit files?



Been trying to work on a preflighting flow that works from zip or sitx files.

Unzipping works fine.

I bought the newest stuffit deluxe. But the configurator doesn't work with it.
by sgeller
Sat Aug 18, 2012 12:30 am
Forum: Scripting
Topic: Traversing XML with switchscript
Replies: 5
Views: 3878

Traversing XML with switchscript

Thanks Dwight! Thats got me a lot closer to what i'm looking for. <?xml version="1.0" standalone="yes"?> <xsdPrintOrder xmlns="http://tempuri.org/xsdPrintOrder.xsd"> <PromotionSummary PromotionID="135" PromotionName="Test Promo"> <PromotionScheduleTy...
by sgeller
Fri Aug 17, 2012 4:16 pm
Forum: Scripting
Topic: Traversing XML with switchscript
Replies: 5
Views: 3878

Traversing XML with switchscript

Thanks Robert! I was sort of heading that way with some further tinkering. I think i'm having trouble with supplying the path, but not sure. So i'm using var theWorkingPath = s.getPropertyValue("FileLocation", job); var xml = new Document( theWorkingPath ); Where FileLocation is being pass...
by sgeller
Thu Aug 16, 2012 4:13 pm
Forum: Scripting
Topic: Traversing XML with switchscript
Replies: 5
Views: 3878

Traversing XML with switchscript

I have some XML processing i'm trying to automate using switch to pickup the XML as an asset then write some of the relevant data out. Is there a way to have it count the occurrence of a node and walk through each? Example. I have an XML with an unknown number of 'member' records. I'd like to have i...
by sgeller
Wed Jan 18, 2012 3:59 pm
Forum: Scripting
Topic: Script Element not moving files through
Replies: 1
Views: 1845

Script Element not moving files through

I have a script element that seems to be running ok in testing, but the files are not being passed through. This is my first scripting attempt. Is there something obvious i'm missing that says pass data along? My entire code is below. Thanks // Is invoked each time a new job arrives in one of the in...