Named Clipboards?

Hello!

I have a specific problem I cannot work my way around. can you help?

Context
I am a lawyer. I have clients and they are being sued/suing opponents. those proceedings have different hearings I am involved with. I have a macro that sets up a folder structure along these lines:

..../Client Name/Opponents Name/Date Hearing Type/Papers,

and it will copy across various papers to the "Papers" sub folder. In this structure the folders "Client Name", "opponents Name" "Date hearing Type" are all variables entered by answers given at a prompt for user interface.

Question
is there a way that I can copy that file structure into a clipboard, so that I can insert it into a text field in another app? I use the app Office Find Replace, to replace standard text across numerous files in one go. v2.1 of GFR has a text field to select the folder in which you want it to weave its magic. I want to be able to paste my recently KM-created folder structure into that text field and save having to click my way to that folder.

I have created a named clipboard called "Office Find Replace Folder", and so would like to copy the case's folder structure to that folder and then paste it into OFR's text box. I cannot work out how to do it though...I have to copy text to the named clipboard but I only get the text "...%ClientName%/%OpponentName%/%Date Hearing%/Papers" copied across and not the unique pathway

I hope this makes sense?

There are many ways to show a directory structure. I'm not sure which way you would like, or if you are willing to install utilities to do that. But try this step first. Open a terminal window and set your working directory to the root of your data files, then enter this command:

find . -print | sed -e 's;[^/]*/;|___;g;s;___|; |;g'

If you are satisfied with this way of showing your directory, then it's easy to solve your first question with this action:

image

(You would replace "~/data" by your own folder location.)

You asked (many) additional questions, which I might answer after this one.

Ahh, I should have read ahead. I don't have OFR (or GFR) so I can't investigate. I couldn't even find the website for the app. Can you provide a link so I can start investigating?

@Airy, Thank you so much for the reply!

I came back to my problem this morning, and with the power of coffee found an easy way through it:

I added a "Set Clipboard to text" action, adjusted the setting of the command so that it processed the tokens, and now I can get the file path from my clipboard.

Office Find Replace's website is: https://www.officefindreplace.com, the app may not be much to look at, but saves a lot of time for me

thanks again for looking at my issue :slight_smile: