Create folder name with leading 5 digits of source file

Questions and answers on how to get the most out of FFAStrans
Post Reply
graham728
Posts: 82
Joined: Sat Oct 13, 2018 10:54 pm

Create folder name with leading 5 digits of source file

Post by graham728 »

Hi,

I would very, very much appreciate some help with the below.

We have two files that are dropped into a watch folder, both start with the same ID number:

GH001_SportsAvidBin.avb
GH001_SportsTranscode.mxf

I would like FFastrans to move the files to its final destination within a folder called 'GH001'.

I've got a similar workflow where it can create a folder based on source file name which is great. I just need to be able to redact some digits.

so source file name = leading five characters.

I hope that makes sense.

Thanks!
momocampo
Posts: 595
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Create folder name with leading 5 digits of source file

Post by momocampo »

Hello Graham,

It seems really simple but I just to be sure to understand what you want :
- You want the files move to a folder called by the first 5 characters ?

That's all?

;)
graham728
Posts: 82
Joined: Sat Oct 13, 2018 10:54 pm

Re: Create folder name with leading 5 digits of source file

Post by graham728 »

Yes thanks. The idea is that numerous files will be placed in the watch folder over weeks/months. Each Avid bin should have a mxf counterpart that starts the same leading 5 digits. So the idea is FFastrans moves the two files into a folder named with that tracking number.
momocampo
Posts: 595
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Create folder name with leading 5 digits of source file

Post by momocampo »

here is the workflow !
Just set your monitor watch and your destination folder before the variable called "%avid-reference%"

Tell me if ok ;

Benjamin
Attachments
Graham.xml
(4.08 KiB) Downloaded 494 times
graham728
Posts: 82
Joined: Sat Oct 13, 2018 10:54 pm

Re: Create folder name with leading 5 digits of source file

Post by graham728 »

It works like a charm and helps me out a lot. Thanks!
momocampo
Posts: 595
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Create folder name with leading 5 digits of source file

Post by momocampo »

No problem ;) You're welcome Graham.

B.
Jason
Posts: 2
Joined: Fri Sep 13, 2024 7:10 am

Re: Create folder name with leading 5 digits of source file

Post by Jason »

hello i want to create folder same as monitor source folder after transcoding. can you help?
emcodem
Posts: 1811
Joined: Wed Sep 19, 2018 8:11 am

Re: Create folder name with leading 5 digits of source file

Post by emcodem »

emcodem, wrapping since 2009 you got the rhyme?
Post Reply