Page 1 of 1

Attaching metadata to file

Posted: Fri Dec 01, 2017 2:57 pm
by diguimfodera
Please, I want to know wot to attach the nameproper to metada on the file.
My problem is:
I have two files, and I'II assemble it on a folder and rename the folder with name file 1 + name file 2. I think merging metadata I get do it.

Re: Attaching metadata to file

Posted: Sat Dec 02, 2017 8:03 pm
by Arthur
What first crosses my mind on this is after you Assembled the job and it is in a folder, to then Ungroup it once again, as the Ungroup operator automatically keeps as Private Data the following:
<key>.FileName [The name of this file as injected in the flow]

So when Assembling again you could name the folder using combined info from this PD key.

Re: Attaching metadata to file

Posted: Mon Dec 04, 2017 12:54 pm
by Padawan
There might be another way. When you request the Job.NestedName variable for a jobfolder, then you get the names of the files inside the jobfolder.

If you use the following single line with variables in the rename job, then you will get what you need.

[Job.NestedName:Index="2",After=" ",Before="."] - [Job.NestedName:Index="3",After=" ",Before="."]

Re: Attaching metadata to file

Posted: Mon Dec 04, 2017 4:31 pm
by Arthur
@ Padawan - may the force be with you.
Everyday something new :) Thank you very much, as although this is not my thread and not an issue I am having, this actually works for me for many other situations/scenarios.

Re: Attaching metadata to file

Posted: Mon Dec 04, 2017 6:08 pm
by gabrielp
For those who want flexibility to write private data at any time:
- scripting module: https://github.com/open-automation/swit ... data-write
- appstore: https://www.enfocus.com/en/appstore/product/metatagger