Search found 8 matches
- Mon Feb 08, 2016 3:23 pm
- Forum: Scripting
- Topic: Loop through XML, find assets
- Replies: 6
- Views: 3732
Re: Loop through XML, find assets
The following script is sending all assets separtly to the connected folder: // Is invoked each time a new job arrives in one of the input folders for the flow element. // The newly arrived job is passed as the second parameter. function jobArrived( s : Switch, job : Job ) { var theXML = new Documen...
- Sat Feb 06, 2016 4:26 pm
- Forum: Scripting
- Topic: Loop through XML, find assets
- Replies: 6
- Views: 3732
Re: Loop through XML, find assets
Hi Loic,
Thank you for your example. This script is picking up the assets regarding the XML indeed. But how to collect these assets to one job or archive file?
Regards, Sjoerd
Thank you for your example. This script is picking up the assets regarding the XML indeed. But how to collect these assets to one job or archive file?
Regards, Sjoerd
- Fri Feb 05, 2016 6:48 am
- Forum: Scripting
- Topic: Loop through XML, find assets
- Replies: 6
- Views: 3732
Re: Loop through XML, find assets
Thank you for your quick response. But splitting the XML is losing the coherence of the assets. I need to combine these assets into one job for archiving it afterwards. I think the 'asssemble job' configurator needs to do the job. But my script which is looping through the XML finding the assets, do...
- Thu Feb 04, 2016 8:48 pm
- Forum: Scripting
- Topic: Loop through XML, find assets
- Replies: 6
- Views: 3732
Loop through XML, find assets
Hi, I have the following assets stored into a folder: Asset-1.pdf Asset-2.pdf Asset-3.pdf Within a XML there are nodes with values regarding to these assets: <FileName>Asset-1.pdf</FileName> <FileName>Asset-2.pdf</FileName> <FileName>Asset-3.pdf</FileName> So I want to collect these assets and archi...
- Sat Jan 23, 2016 1:58 pm
- Forum: Flows
- Topic: Collect Assets Based on XML
- Replies: 3
- Views: 2026
Re: Collect Assets Based on XML
Ok, thank you Sander. That will be an option! Can loop through nodes with the scripting element be accomplished then?
- Sat Jan 23, 2016 10:23 am
- Forum: Flows
- Topic: Collect Assets Based on XML
- Replies: 3
- Views: 2026
Collect Assets Based on XML
Hi, I would like to place assets in the correct folder based on the information within a XML file. I've one folder that contains the XML files and one folder that contains the PDF assets. Within the XML the asset names and order numbers are set: <Order> <OrderNumber>2340</OrderNumber> <Asset>hello.p...
- Wed Nov 04, 2015 8:43 am
- Forum: Scripting
- Topic: setUserName for AppleScript
- Replies: 2
- Views: 1780
Re: setUserName for AppleScript
Nobody?
- Thu Oct 29, 2015 4:03 pm
- Forum: Scripting
- Topic: setUserName for AppleScript
- Replies: 2
- Views: 1780
setUserName for AppleScript
Hi, I would like to use AppleScript for associating Switch Client User to a job. The JavaScript looks like following code: function jobArrived( s : Switch, job : Job ) { // Get the value of the username property var theUserName = job.getVariableAsString('[Metadata.Text:Path="/Root/Usr",Dat...