Search found 12 matches

by danb
Wed Mar 04, 2020 4:25 am
Forum: LEGACY scripting
Topic: inject job
Replies: 5
Views: 6974

Re: inject job

now for further refinements how can I get this all done in the script expression?
by danb
Wed Mar 04, 2020 4:22 am
Forum: LEGACY scripting
Topic: inject job
Replies: 5
Views: 6974

Re: inject job

//set private data loop=[Metadata.Integer:Path="count(/Documents/Document)",Dataset="Xml",Model="XML"] //then repeat loop calculation loop=[Switch.Calculation:Expression="[Job.PrivateData:Key="loop"]-1"] //then inject job, job path script expression ...
by danb
Wed Mar 04, 2020 12:37 am
Forum: LEGACY scripting
Topic: inject job
Replies: 5
Views: 6974

Re: inject job

that's no fun at all. i'll post here once i've figured it out.
by danb
Wed Feb 26, 2020 1:36 am
Forum: LEGACY scripting
Topic: inject job
Replies: 5
Views: 6974

inject job

Given: var XMLData = job.getDataset("Xml"); var itemToInject = 2 var doIT = XMLData.evalToString("/Documents/Document[" + itemToInject + "]/filePath"); doIT; This works and injects document 2 of a 3 document xml. My question is how do I iterate through the xml to get al...
by danb
Fri Dec 20, 2019 4:55 pm
Forum: Flows
Topic: hold job target folder
Replies: 0
Views: 8333

hold job target folder

I set target folder for hold job to a bogus directory to force an error. After activating workflow and submitting jobs I got no errors.
How do I know if target folder is working? I suspected it did not is why I performed error test. thanks
by danb
Tue Jun 25, 2019 8:23 pm
Forum: Forum Guidelines / Forum Feature requests / Forum Bug reports?
Topic: automatic restart
Replies: 1
Views: 8444

automatic restart

I have two switch servers running v18 update 3 on macOS Sierra with 32GB of ram. Both servers are scheduled to restart weekly. After each restart I receive an administrator alert email: Error on POCswitch Switch Server quit unexpectedly The problem was detected during Switch Server startup at: 2019-...
by danb
Thu Jun 06, 2019 1:55 am
Forum: LEGACY scripting
Topic: file cleanup
Replies: 3
Views: 5462

Re: file cleanup

not understanding the rules. and how they are applied.
can you elaborate?
by danb
Tue Jun 04, 2019 10:47 pm
Forum: LEGACY scripting
Topic: file cleanup
Replies: 3
Views: 5462

file cleanup

i have a flow that runs script in save as : script file property of illustrator flow element. incoming PDF opens in illustrator saves out ai file in desired location closes file that had been opened but incoming PDF that triggers the open and save as script just sits there. how do i pass the PDF thr...
by danb
Mon Sep 10, 2018 9:35 pm
Forum: Flows
Topic: portal callback
Replies: 2
Views: 4699

portal callback

I found portal app when looking for best practices and love it. Well, the idea of it. I was playing with it and got it to work following the supplied sample. But if I'm sending a csv file with callback included to a smartstream flow and the smartstream flow returns a PDF then how does the PDF inheri...
by danb
Tue Jul 26, 2016 12:28 am
Forum: LEGACY scripting
Topic: first applescript
Replies: 4
Views: 6660

Re: first applescript

Excellent!

I want to strip <?xml version=\"1.0\"?> from an incoming text file and then forward edited text file.


that's it :)
by danb
Mon Jul 25, 2016 9:33 pm
Forum: LEGACY scripting
Topic: first applescript
Replies: 4
Views: 6660

first applescript

I've written many applescripts and have been scripting for years. But never for Switch. I have a script that will allow you to select and read a text file. Then sets applescripts text item delimiters to a string I want to strip out. Empties the text file and writes my resulting text items to it. I w...
by danb
Tue May 10, 2016 1:08 am
Forum: PitStop Server
Topic: help with selecting color 'Registration'
Replies: 2
Views: 5899

help with selecting color 'Registration'

The supplied ‘make rich black’ action does not handle items colored ‘Registration’.
I did not find in any other color action how to select ‘Registration’ color to remap.

thanks