You are viewing limited content. For full access, please sign in.

Question

Question

merging tif files with the same name in entry order in Laserfiche folder/sub-folders

asked on July 13, 2018

I'm terribly new at Workflows and don't even know how to get started.  I need to merge files with the same name into 1 file of that name in the order that they were written into the repository.  The base name first; john, then john (2), john (3), etc.  These are single-pg tifs usually from aperture cards or microfiche.  I would like them to be a multi-pg tif instead of 1 to 100+ single pg tifs.  I need the workflow to process what is handed to it through a search.  I've been doing this manually and it's a real bummer and will take forever.

Any help, would be greatly appreciated.

0 0

Replies

replied on July 15, 2018

Hi Kay,

I wanted to work out how to do this for myself so have given your problem a shot.  I've taken the approach where I'm searching for all document names that end in "(2)" to indicate a duplicate file name, then running the search - within the same folder to ensure no issues with duplicate names across multiple folders - against the root name of that file e.g. I'm returning 1045-P-80 as the RootName for "1045-P-80 (2)".

Someone may have a better approach for this, but it seems to work okay in testing.

The workflow is below, please note the following that I've highlighted:

  • The "Split" function is on the space before the duplicate number:  ...#@Split( );Remove...
  • The Remove function only has "(2)" in the function entry but displays in the token as: ...Remove((2/))...
  • Make sure that for the second search "Search for all duplicates of the root name in the current folder" you enable the "Search found entries" option on "Name : Ascending" - this will ensure that the final document page sequence is in the correct order per the original naming in your screenshot.

 

Here's the Workflow:

Here's the setting in the Token Editor for the "Exclude the "(2)" from the name" token:

And here are the results, I created two test folders and duplicated the file names in each folder to ensure the merging only happened in the current folder:

Folder 1:

Folder 2:

You will want to make sure you test your workflow against a set, test folder initially, so I would change the first Search Repository activity to limit it to whatever your test folder(s) is.

Hopefully this helps.

Cheers,

Mike

0 0
replied on August 4, 2018

Sorry for the late reply.  This definitely solves the simple example I displayed and is very useful.  I have some strange folder structures caused by a .lst file not being properly made from a conversion from another software platform.  I'm going to play with some of the things you taught me in this one and see if I can solve those.  I may reach out again if I get stuck.  Is that ok?

0 0
replied on August 5, 2018

I'm happy to help where I can Kay, but I am not always able to help out due to other commitments/work trips etc so you would probably get a faster and/or better response from other members if you post your questions in here.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.