Search found 106 matches
- Thu Aug 08, 2019 10:06 pm
- Forum: Flows
- Topic: Switch Folder / Service Credentials
- Replies: 1
- Views: 7143
Switch Folder / Service Credentials
I have a Switch server that won't allow me to create user-defined folders that point to network shares (i.e. //Server Name/Share Name/Path ) on an external server. This seems to be a user access issue because it works if I point to a share that my local user account has access to. Is there a way to ...
- Thu Jun 27, 2019 5:24 pm
- Forum: Applications
- Topic: HP SmartStream Designer 14.0.6 for InDesign CC 2019
- Replies: 4
- Views: 20298
Re: HP SmartStream Designer 14.0.6 for InDesign CC 2019
The developer told me that Designer 14.0.6 (which supports CC2019) is supported by version 140 of the Configurator (which should be the latest on the Enfocus website). If you're having issues with it working and you are using this version then check that you have Adobe "Extendscript Toolkit CC&...
- Tue May 14, 2019 8:36 pm
- Forum: Flows
- Topic: HP Digital Front End JDF Control
- Replies: 3
- Views: 9498
Re: HP Digital Front End JDF Control
What are you trying to do? Can you show me your property settings?
- Tue May 14, 2019 1:01 am
- Forum: Flows
- Topic: HP Digital Front End JDF Control
- Replies: 3
- Views: 9498
Re: HP Digital Front End JDF Control
What type of press are you driving through JDF?
What settings do you have in the configurator and what are you hoping to have happen?
What settings do you have in the configurator and what are you hoping to have happen?
- Mon May 06, 2019 4:56 pm
- Forum: LEGACY scripting
- Topic: script get oldest file from directory
- Replies: 2
- Views: 6352
Re: script get oldest file from directory
I normally do an entryList on a Dir object for something like this: function timerFired( s : Switch ) { var inFolder = new Dir("C:/Shared"); var fileList = inFolder.entryList("*.pdf", Dir.Files, Dir.Time|Dir.Reversed); s.log(1, "Oldest file in folder is: " + fileList[0]...
- Tue Apr 23, 2019 5:11 pm
- Forum: LEGACY scripting
- Topic: RegEx replace in Script expression
- Replies: 4
- Views: 9026
Re: RegEx replace in Script expression
you can also use the String.split('_') and Array.join('_') methods to convert these strings into an array and then modify the 3rd instance of the array: var inString = "a1b2c3_DDYYKK_123_ABC_X1Y1Z1"; var strArray = inString.split('_'); strArray[2] = "456"; inString = strArray.joi...
- Fri Mar 08, 2019 9:13 pm
- Forum: Flows
- Topic: .bat variables in Switch
- Replies: 2
- Views: 5439
Re: .bat variables in Switch
I think you'd have to output it to stdout or stderr and then switch could capture that. It's not going to be able to search through external code to find variables.
- Fri Mar 01, 2019 12:55 am
- Forum: LEGACY scripting
- Topic: Submit point script expression question
- Replies: 4
- Views: 9376
Re: Submit point script expression question
I did a little with submit points, but I'm not sure if you can push data back into the submit point GUI. You can capture the data set associated with a submit point like this: var submitData = job.getDataset("Submit"); //"Submit" I believe is the name of your submit point that yo...
- Tue Feb 19, 2019 6:32 pm
- Forum: Flows
- Topic: XML Pickup for Multiple Values
- Replies: 8
- Views: 16111
Re: XML Pickup for Multiple Values
I think this is a limitation with the XML Pickup module. Expressions like this can only resolve to a single value, so when an XPath resolves to multiple values it either errors or returns the first value in the list. I think you'll need to use a script expression that evaluates to a node list and th...
- Fri Jan 18, 2019 6:45 pm
- Forum: LEGACY scripting
- Topic: Changing values in XML xpath
- Replies: 5
- Views: 11075
Re: Changing values in XML xpath
Sorry, I thought that's what you wanted based on your description. That actually makes the script a bit easier: function jobArrived( s : Switch, job : Job ) { var ADD_PAGES = 16; //Open the incoming file as an XML document var xmlDoc = new Document(job.getPath()); //Get the Products nodes var produc...
- Thu Jan 17, 2019 10:02 pm
- Forum: LEGACY scripting
- Topic: Changing values in XML xpath
- Replies: 5
- Views: 11075
Re: Changing values in XML xpath
Don't think this can be done outside of scripting, but here's how you could do it in scripting (assuming the XML is a file coming into the script element): function jobArrived( s : Switch, job : Job ) { var ADD_PAGES = 16; //Open the incoming file as an XML document var xmlDoc = new Document(job.get...
- Thu Dec 06, 2018 10:59 pm
- Forum: LEGACY scripting
- Topic: XML to a String
- Replies: 1
- Views: 5489
Re: XML to a String
Just read it in like a normal text file: var xmlString = File.read(job.getPath()); I've used this in the past with regular expressions to find something without knowing where it is in the XML structure, or in XML formats that aren't supported in Switch like cXML. I believe you need to be careful if ...
- Thu Nov 29, 2018 10:08 pm
- Forum: LEGACY scripting
- Topic: POST JSON to API with HTTP Request
- Replies: 4
- Views: 9937
Re: POST JSON to API with HTTP Request
Yes, I have to do custom authentication so I don't have a choice.
- Thu Nov 29, 2018 5:30 pm
- Forum: LEGACY scripting
- Topic: POST JSON to API with HTTP Request
- Replies: 4
- Views: 9937
Re: POST JSON to API with HTTP Request
I haven't used make JSON or basic authentication, but I've created a couple scripts that do authenticated RESTful API calls. One takes a .json input file and just attaches it to the HTTP client using: httpClient.setAttachedFile(jsonBodyLoc); //where jsonBodyLoc is the location of the incoming JSON f...
- Mon Nov 05, 2018 5:27 pm
- Forum: Imposition
- Topic: HP SmartStream Designer imposition crashing
- Replies: 2
- Views: 10857
Re: HP SmartStream Designer imposition crashing
13.04 had a bug that does not support automation (switch or otherwise)
You'll need to upgrade to 13.1 or wait for 14 on cc 2019
You'll need to upgrade to 13.1 or wait for 14 on cc 2019