How do I copy the filename to the system clipboard?

Thank you. I’m using http://www.clipmenu.com/. I didn’t know KM had its own clipboard history so I’ll check it out and see if I can just use that instead.
Thanks again for all the help.

Thanks. All the names I’m copying are unique so that’s one worry I don’t have.

Hello again,

I tried using KM's built-in Clipboard History but it only saved the last item copied. I tried a few variations and the closest I got was a all of the items copied into one entry. I'm not sure what to change.

It's hard to say why that's happening for you without more detail, so here's a full sample macro and an example of how it works the way you originally described:

Example Macro.kmmacros (1.8 KB)
image

Select files in Finder:

5

Trigger macro, then activate KM's clipboard history switcher:

5

I'll try it today, thank you! I wasn't sure what information I should give so let me know if there is something you need to know that I haven't said.

No worries! Just try this out like I described and report back (preferably with screenshots like what I showed you if it still doesn't work right).

1 Like

It worked! Thank you so much for all your hard work and patience, especially for a stranger on the internet.

Also, sorry for the late reply. I've had some problems with my computer and had to stop everything to figure out what was going on.

Now that I've got it working (and have your version saved) I'm going to have some fun. It's 100% effective as is, though, and it has already saved me a lot of time.

Thanks again.

2 Likes

I activate MacOS Pages with a file and then execute a KM macro that has "Get File Name to Variable 'Name', Get to variable (box) Name, from file (box) %Variable%%Path%

And I get nothing. I've used dozens of arrangements and commands including shell commands to print the clipboard. Nothing.

Is there a bug in Catalina? Is there something obvious I'm missing? A suggested fix? Suggested code?

Here's what I get in the output dialog box:

The output of the text script is:

For Each Path in Finder Selection
◦ Set Clipboard to Text %Variable%Path%

What does Pages have to do with anything? The example in question lists the selected files in the Finder.

It is a safe assumption that no problem you are having is related to any bugs in anything.

The macro copies the path of the selected file in the Finder to the clipboard.

I suggest you post a new topic, stating what you are trying to do and include your macro and then people can answer it.