Attaching metadata to file

Post Reply
diguimfodera
Newbie
Posts: 16
Joined: Thu Jan 21, 2016 1:34 am

Attaching metadata to file

Post 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.
Arthur
Member
Posts: 113
Joined: Sat Sep 09, 2017 11:58 pm
Location: Yateley, UK

Re: Attaching metadata to file

Post 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.
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: Attaching metadata to file

Post 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="."]
Arthur
Member
Posts: 113
Joined: Sat Sep 09, 2017 11:58 pm
Location: Yateley, UK

Re: Attaching metadata to file

Post 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.
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Attaching metadata to file

Post 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
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Post Reply